Copyright © Cloud Software Group, Inc. All rights reserved.
Copyright © Cloud Software Group, Inc. All rights reserved.


Chapter 7 Administering Message Queues and Mbox Sets : Using SWDIR\util\swadm to Administer Mbox Sets, Message Queues and Messages : Delete Messages From a Queue

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 wish 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 database, all types of message 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

Copyright © Cloud Software Group, Inc. All rights reserved.
Copyright © Cloud Software Group, Inc. All rights reserved.