emptyqueue

This command deletes all work items from the indicated queue in the current isolated region. These work items are removed from the database immediately upon execution of the emptyqueue command; the work items are not processed according to their Terminate workflow maps or instruction sheets prior to removal.

This command also deletes all records associated with the removed work items (for example, WaitForCondition information or timeout records).

You cannot empty a queue if you do not have access to the queue or work items in the queue. See About workflow security for further information.

Syntax

emptyqueue <queuename> <confirmation>

Parameters

queuename

Name of the queue to empty.

If you specify a system or user queue, you must enter the queue name followed by "(0)". For example, to view information about the Delay system queue, enter Delay(0).

confirmation

Enter "Yes" to perform the action, or "No" to do nothing.

NOTE  You must enter the answer exactly as indicated—"yes" or "y" is not the same as "Yes" in this case.