CmdID / aws / aws lightsail
aws lightsail delete-instance-snapshot
Deletes a specific snapshot of a virtual private server (or instance). AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To delete a snapshot of an instance
The following delete-instance-snapshot example deletes the specified snapshot of an instance.
aws lightsail delete-instance-snapshot --instance-snapshot-name WordPress-1-Snapshot-1Identify--instance-snapshot-nameThe name of the snapshot to delete.Its output
{
"operations": [
{
"id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"resourceName": "WordPress-1-Snapshot-1",
"resourceType": "InstanceSnapshot",
"createdAt": 1569874524.562,
"location": {
"availabilityZone": "all",
"regionName": "us-west-2"
},
"isTerminal": true,
"operationType": "DeleteInstanceSnapshot",
"status": "Succeeded",
"statusChangedAt": 1569874524.562
}
]
}For more information, see Delete unused Lightsail snapshots to avoid monthly charges in the Amazon Lightsail User Guide.
Options
--instance-snapshot-nameThe name of the snapshot to delete.