* @param key unique record identifier
* @return whether record existed on server before deletion
* @throws AerospikeException if delete fails
*/
public final boolean delete(WritePolicy policy, Key key) throws AerospikeException {
DeleteCommand command = new DeleteCommand(cluster, key);
command.setDelete(policy, key);
command.execute(policy);
return command.getResultCode() == ResultCode.OK;
}