Skip to main content

sow-delete-data

Including the basic AMPS library:

using AMPS.Client;
using AMPS.Client.Message;
using AMPS.Client.Exceptions;

Remove the message that matches the message passed in:


// Set topic (required)
Command cmd = new Command(Message.Command.SOWDelete)
.setTopic(topic);

// Set the message to be removed
cmd.setData(msgData);

The command can now be used in executeAsync with a null message handler.