clean cache when deleting objects