API Gateway 11.1 | Administering API Gateway | Operating API Gateway | Data Management | Data Backup | Advanced Backup Options | Deleting a Backup File
 
Deleting a Backup File
You can delete backups that are older than your data retention period and no more required. This can be useful for managing storage and keeping your backup repository clean.
*To delete a backup file
1. Ensure your external Elasticsearch cluster is up and running.
2. Delete a backup file using the following command:
DELETE http://es-host:es-port/_snapshot/repo-name/backup_name
A sample command to delete a backup file is as follows:
curl -si -X DELETE http://es-host:es-port/_snapshot/repo-name/backup_name
In this command, replace es-host and es-port with the hostname and port of your external Elasticsearch cluster. Replace repo-name with the name of your repository. Replace backup-name with the name of the backup you want to delete. To delete multiple backups, separate their names with a comma.