Cookbook: SOW Delete
This section presents common recipes for sending a sow_delete
command using the Command
or Message
interfaces. This section provides information on how to configure the request to AMPS. You can adapt this information to your application and the specific interface you are using.
Command: sow_delete
Delete All Records in a SOW
To delete all records in a SOW, provide a filter that evaluates to TRUE for every record in the SOW. By convention, 60East recommends 1=1
for the filter.
Delete SOW Records Matching a Filter
To delete the records that match a particular filter, provide the filter in the sow_delete
command.
Delete a Specific Message by Data
To delete a specific message, provide the data for the message to delete. With this form of SOW delete, AMPS deletes the message that would have been updated if the data were provided as a publish message. Notice that this form of sow_delete
relies on the Key
definition in the SOW configuration, and is not generally useful with explicitly-keyed SOW topics.
Delete Specific Messages using Keys
To delete specific messages using SOW keys, provide the SOW keys for the message to delete.
Acknowledge Messages from a Queue
To acknowledge messages from an AMPS queue, provide the bookmarks for the messages to acknowledge. Notice that this is the only form of the sow_delete
command that can acknowledge messages from a queue, and that this form of sow_delete
is not accepted for topics that are not queue topics.
Last updated