Delete Messages From a Queue
To delete one or more iProcess messages from a queue, use the following command:
swadm delete_messages queue_id ALL [EXP]| message_id|-f file_name
where
| • | queue_id is the unique identifier of the queue containing the messages which you want to delete. You can find a queue’s identifier using the show_queues command. Enter ALL to delete the messages in all queues. |
| • | EXP is an optional parameter used with Oracle databases only. Use it to delete all the Oracle exception messages in the queue. If this parameter is not specified, only normal messages will be deleted on an Oracle system, with other types of databases, all types of messages are deleted. |
| • | message_id specifies the ID of the message that you want to delete. The following example deletes an exception message from queue 1: |
swadm delete_messages 1 291E84BA-A898-4D6A-A812-A76BE108B21D
| • | -f file_name identifies a text file that contains one or more message-IDs for deletion. The file must be located in the SWDIR/util directory. Message-IDs are separated from each other by a return character. If the beginning of a line has a semi-colon (;) character, that line is treated as a comment and all the content in the line is omitted. |
Example
The following command deletes the specified message from queue 5:
swadm delete_messages 5 AB87DAEF-CEAD-4EC2-A44B-6F5DF716E4D6