// Modify statement for action.
statementBuilder.setQuery("WHERE customTargetingKeyId = :customTargetingKeyId AND id IN ("
+ StringUtils.join(customTargetingValueIds, ",") + ")");
// Create action.
DeleteCustomTargetingValues action = new DeleteCustomTargetingValues();
// Perform action.
UpdateResult result = customTargetingService.performCustomTargetingValueAction(
action, statementBuilder.toStatement());