safety checks before deleting external reference data