HOW TO
The deletebackup utility is a utility that deletes Relational Data Store and Graph store backups. However, it doesn't delete Tile Cache Data Store backups, which is a known limitation addressed in the following enhancement that is currently in the product plan and will be taken into consideration in future releases:
ENH-000119436 : Enhance ArcGIS Data Store to provide the functionality to delete backup files created for tile cache data Store using the deletebackup command utility)
Until then, there is still need to delete Tile Cache backups, as described in the following steps.
You can also implement the previous steps using the Python script below.
Please note the following before using the Python script:
import os BackupsPath = r'C:\arcgisdatastore\backup\tilecache' IndexPath = os.path.join(BackupsPath,"index") File = open(IndexPath,'r') BackupName = str(input('BackupName:')) option1 = f'"{BackupName}",' option2 = f',"{BackupName}"' option3 = f'"{BackupName}"' OptionsList = [option1, option2, option3] List = [] try: for line in File: for option in OptionsList: try: if option in line: line = line.replace(option,'') print('Backup name found.') break except Exception as Ex: print('Backup name does not exist.') List.append(line) File.close() File = open(IndexPath,'w') for line in List: File.write(line) File.close() for files in os.listdir(BackupsPath): f = os.path.join(BackupsPath,BackupName) if os.path.isfile(f): os.remove(f) print('Deleted Backup File from Backups Folder') break except Exception as Ex: print(Ex)
Article ID: 000027818
Get help from ArcGIS experts
Download the Esri Support App