objectToRemove.editingContext().deleteObject(objectToRemove);
try { objectToRemove.editingContext().deleteObject(objectToRemove); objectToRemove.validateForDelete(); } catch (NSValidation.ValidationException ex) { validationFailedWithException(ex, objectToRemove, key()); object().editingContext().revert(); }
    public void deleteObject(EOEnterpriseObject objectToRemove) {        removeObject(objectToRemove);        if(objectToRemove.editingContext() != null) {            objectToRemove.editingContext().deleteObject(objectToRemove);        }    }