CmdID / aws / aws lightsail
aws lightsail delete-auto-snapshot
Deletes an automatic snapshot of an instance or disk. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To delete an automatic snapshot
The following delete-auto-snapshot example deletes the automatic snapshot 2019-10-10 of instance WordPress-1.
aws lightsail delete-auto-snapshot --resource-name WordPress-1 --date 2019-10-10Identify--resource-nameThe name of the source instance or disk from which to delete the automatic snapshot.--dateThe date of the automatic snapshot to delete in YYYY-MM-DD format.Its output
{
"operations": [
{
"id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"resourceName": "WordPress-1",
"resourceType": "Instance",
"createdAt": 1571088141.501,
"location": {
"availabilityZone": "us-west-2",
"regionName": "us-west-2"
},
"isTerminal": true,
"operationDetails": "DeleteAutoSnapshot-2019-10-10",
"operationType": "DeleteAutoSnapshot",
"status": "Succeeded"
}
]
}For more information, see Deleting automatic snapshots of instances or disks in Amazon Lightsail in the Lightsail Dev Guide.
Options
--dateThe date of the automatic snapshot to delete in YYYY-MM-DD format.--resource-nameThe name of the source instance or disk from which to delete the automatic snapshot.