Skip to main content

sow-delete-keys

Including the basic AMPS library:

#include <amps/ampsplusplus.hpp>

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


AMPS::Command cmd(AMPS::Message::Command::SowDelete);

// Set the topic and the messages to remove

cmd.setTopic(topic).setSowKeys(keyList);

The command can now be used in executeAsync with a default-constructed (empty) MessageHandler.