When you delete datasets that are used in geospatial queries, the geospatial queries appear in PreparingError.