The QDELETE.EXE command deletes a queue, canceling any jobs in the queue. If the queue contains any executing jobs, the QDELETE.EXE command will not delete the queue unless the /ABORT_JOBS qualifier is used.
QDELETE.EXE QueueName /ABORT_JOBS /SERVER=ServerName
This instructs the Argent Queue Engine to abort any executing jobs in the queue in order to delete the queue. If you do not use this qualifier, and the queue contains one or more executing jobs, then the Argent Queue Engine does not delete the queue.
This specifies the name of an Argent Queue Engine server. If this qualifier is absent, then the command uses the value of the XS_SERVER environment variable, if defined. If this environment variable is also absent, then the command assumes the local server.
This example deletes queue QUEUE1. If the queue contains any executing jobs, then an error message is displayed and the queue is not deleted.
This example deletes queue QUEUE1, aborting any executing jobs in the queue.