The Ns_UnscheduleProc function stops a scheduled procedure from executing again. The scheduled procedure to be stopped is identified by its id, which was returned by the Ns_Schedule* function that was used to schedule the procedure. It is safe to call Ns_UnscheduleProc from inside a scheduled procedure.