Implement deletion of entities and relations.