Deleting a snapshot
An automatic snapshot is automatically deleted when its retention limit expires. If you delete a cluster, all of its automatic snapshots are also deleted.
MemoryDB provides a deletion API operation that lets you delete a snapshot at any time, regardless of whether the snapshot was created automatically or manually. Because manual snapshots don't have a retention limit, manual deletion is the only way to remove them.
You can delete a snapshot using the MemoryDB console, the AWS CLI, or the MemoryDB API.
The following procedure deletes a snapshot using the MemoryDB console.
To delete a snapshot
-
Sign in to the AWS Management Console and open the MemoryDB console at https://console.aws.amazon.com/memorydb/
. -
In the left navigation pane, choose Snapshots.
The Snapshots screen appears with a list of your snapshots.
-
Choose the radio button to the left of the name of the snapshot you want to delete.
-
Choose Actions and then choose Delete.
-
If you want to delete this snapshot, enter
delete
in the text box and then choose Delete. To cancel the delete, choose Cancel. The status changes to deleting.
Use the delete-snapshot AWS CLI operation with the following parameter to delete a snapshot.
--snapshot-name
– Name of the snapshot to be deleted.
The following code deletes the snapshot myBackup
.
aws memorydb 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
snapshot.
SnapshotName
– Name of the snapshot to be deleted.
The following code deletes the snapshot myBackup
.
https://memory-db.us-east-1.amazonaws.com/ ?Action=DeleteSnapshot &SignatureVersion=4 &SignatureMethod=HmacSHA256 &SnapshotName=myBackup &Timestamp=20210802T192317Z &Version=2021-01-01 &X-Amz-Credential=<credential>
For more information, see DeleteSnapshot.