Deleting a backup
An automatic backup is automatically deleted when its retention limit expires. If you delete a cluster, all of its automatic backups are also deleted. If you delete a replication group, all of the automatic backups from the clusters in that group are also deleted.
ElastiCache provides a deletion API operation that lets you delete a backup at any time, regardless of whether the backup was created automatically or manually. Because manual backups don't have a retention limit, manual deletion is the only way to remove them.
You can delete a backup using the ElastiCache console, the AWS CLI, or the ElastiCache API.
The following procedure deletes a backup using the ElastiCache console.
To delete a backup
-
Sign in to the AWS Management Console and open the ElastiCache console at https://console.aws.amazon.com/elasticache/
. -
In the navigation pane, choose Backups.
The Backups screen appears with a list of your backups.
-
Choose the box to the left of the name of the backup you want to delete.
-
Choose Delete.
-
If you want to delete this backup, choose Delete on the Delete Backup confirmation screen. The status changes to deleting.
Use the delete-snapshot AWS CLI operation with the following parameter to delete a backup.
--snapshot-name
– Name of the backup to be deleted.
The following code deletes the backup myBackup
.
aws elasticache delete-snapshot --snapshot-name
myBackup
For more information, see delete-snapshot in the AWS CLI Command Reference.
Use the DeleteSnapshot
API operation with the following parameter to delete a
backup.
SnapshotName
– Name of the backup to be deleted.
The following code deletes the backup myBackup
.
https://elasticache.us-west-2.amazonaws.com/ ?Action=DeleteSnapshot &SignatureVersion=4 &SignatureMethod=HmacSHA256 &SnapshotId=myBackup &Timestamp=20150202T192317Z &Version=2015-02-02 &X-Amz-Credential=<credential>
For more information, see DeleteSnapshot in the Amazon ElastiCache API Reference.