remove entities from their collections when they're deleted