Stopping a Work Queue and Removing Work Items
When using the Work Queue Manager, you can stop a work queue, interrupting any work items in progress and removing any queued work items. To do so, call the Clear() method of the work queue.
method Clear(timeout As %Integer = 5) as %Status
Given the timeout period timeout (in seconds), this method waits for the worker jobs to finish their current tasks, and then kills the jobs. The system removes and then recreates the work queue, without any work items attached. Afterword, the system returns immediately from Wait() or WaitForComplete().