adds deletion of related entities