Replaced the adapter with CodeSyncDiagramOperationsService.delete() -> delegates to EcoreUtil.delete() to remove the object and set the references to null, and also removes all registered DependentFeatures.