Delete things related to entities when you delet an entity