CmdID / aws / aws elasticache
aws elasticache delete-snapshot
Deletes an existing snapshot. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To delete a snapshot
The following delete-snapshot example deleted a snapshot using the Redis engine.
aws elasticache delete-snapshot --snapshot-name mysnapshotIdentify--snapshot-nameThe name of the snapshot to be deleted.Its output, shortened
{
"Snapshot": {
"SnapshotName": "my-cluster-snapshot",
"ReplicationGroupId": "mycluster",
"ReplicationGroupDescription": "mycluster",
"SnapshotStatus": "deleting",
"SnapshotSource": "manual",
"CacheNodeType": "cache.r5.xlarge",
"Engine": "redis",
"EngineVersion": "5.0.5",
"PreferredMaintenanceWindow": "thu:12:00-thu:13:00",
"TopicArn": "arn:aws:sns:us-west-2:xxxxxxxxxxxxx152:My_Topic",
"Port": 6379,
"CacheParameterGroupName": "default.redis5.0.cluster.on",
"CacheSubnetGroupName": "default",
"VpcId": "vpc-a3e97cdb",
"AutoMinorVersionUpgrade": true,
"SnapshotRetentionLimit": 1,
"SnapshotWindow": "13:00-14:00",
"NumNodeGroups": 4,
"AutomaticFailover": "enabled",
"NodeSnapshots": [
{
"CacheClusterId": "mycluster-0002-003",
"NodeGroupId": "0002",
"CacheNodeId": "0001",
"CacheSize": "6 MB",
"CacheNodeCreateTime": "2020-06-18T00:05:44.719000+00:00",
"SnapshotCreateTime": "2020-06-25T20:34:30+00:00"
},
… 27 more linesFor more information, see Backup and Restore for ElastiCache for Redis in the Elasticache User Guide.
Options
--snapshot-nameThe name of the snapshot to be deleted.