CmdID / aws / aws lightsail
aws lightsail delete-relational-database-snapshot
Deletes a database snapshot in Amazon Lightsail. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To delete a snapshot of a managed database
The following delete-relational-database-snapshot example deletes the specified snapshot of a managed database.
aws lightsail delete-relational-database-snapshot --relational-database-snapshot-name Database-Oregon-1-1566839359Identify--relational-database-snapshot-nameThe name of the database snapshot that you are deleting.Its output
{
"operations": [
{
"id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"resourceName": "Database-Oregon-1-1566839359",
"resourceType": "RelationalDatabaseSnapshot",
"createdAt": 1569875293.58,
"location": {
"availabilityZone": "all",
"regionName": "us-west-2"
},
"isTerminal": true,
"operationType": "DeleteRelationalDatabaseSnapshot",
"status": "Succeeded",
"statusChangedAt": 1569875293.58
}
]
}For more information, see Delete unused Lightsail snapshots to avoid monthly charges in the Amazon Lightsail User Guide.
Options
--relational-database-snapshot-nameThe name of the database snapshot that you are deleting.