Skip to main content

sow-delete-data

Import the AMPS library:

import AMPS

Deleting the message that matches the message passed in:

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

# set the topic
cmd.set_topic(topic)

# set the message to remove
cmd.set_data(messageData)

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