Jobs can be deleted from a queue one at a time, or they can be deleted all at once.
You must have at least operator privileges to delete/abort all jobs in a queue.
Using Batch Manager:
-
Select the queue to be deleted.
-
Stop the queue using Queue > Stop, or click Stop Queuet on the toolbar.
-
Select Queue > Abort to stop all running jobs in the queue.
Batch Manager prompts you whether or not you want to attempt to restart the jobs.
-
Select Queue > Purge to remove any jobs that are neither running in the queue, nor being transferred to another queue.
Using the command line:
-
Start qmgr.
-
Stop the queue using the stop queue command.
-
Stop all running jobs in the queue using the abort queue command. Jobs are not restarted.
-
Delete jobs in the queue that are neither running nor being transferred to another queue using the purge queue command.
Using the Batch API:
-
Stop the queue using the BatchStopQueue function.
-
Use the BatchAbortQueue function to stop all running jobs in the queue.
-
Use the BatchPurgeQueue function to delete any jobs in the queue that are neither running nor being transferred to another queue.