Remove associated modifications when a entity or relation is deleted.