Skip to main content

sow-delete-keys

Including the basic AMPS library:

import com.crankuptheamps.client.*;
import com.crankuptheamps.client.exception.*;

Deleting specific records by providing a comma-delimited list of sow keys:

Command cmd = new Command(Message.Command.SowDelete);

// Set topic
cmd.setTopic(topic);

// Set SOW keys to be deleted
cmd.setSowKeys(keyList);

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