Skip to main content

sow-delete-keys

Import the AMPS library:

import AMPS

Deleting the messages for the comma-delimited set of keys passed in:

cmd = AMPS.Command(AMPS.Message.Command.SOWDelete)

# set the topic (required)
cmd.set_topic(topic)

# set comma-delimited list of SOW keys to remove
cmd.set_sow_keys(key_list)

The command can now be used in execute_async with None for the message handler.