Predicate predicate = new Predicate();
predicate.setStore(STORE);
predicate.setNodes(new Reference[]{reference});
CMLDelete cmlDelete = new CMLDelete();
cmlDelete.setWhere(predicate);
CML cml = new CML();
cml.setDelete(new CMLDelete[]{cmlDelete});
repositoryService.update(cml);