Amazon Relational Database Service
Command Line Interface Reference (API Version 2012-04-23)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

rds-delete-db-snapshot

Description

Deletes a DB Snapshot.

Syntax

rds-delete-db-snapshot DBSnapshotIdentifier

[General Options]

Options

NameDescriptionRequired

DBSnapshotIdentifier

DB Snapshot identifier.

This value can also be passed using the --db-snapshot-identifier named parameter.

Constraints: Must contain 1 to 63 alphanumeric characters or hyphens. First character must be a letter. Cannot end with a hyphen or contain two consecutive hyphens.

Yes

Output

The command returns the following information:

  • DBSnapshotId—Name of the DB Snapshot

  • Snapshot Created—The time (UTC) when the DB Snapshot was taken

  • DBInstanceId—User-supplied database identifier; this is the unique key that identifies a DB Instance

  • Instance Created—The date and time when the DB Instance was created

  • Engine—The name and version of the database used

  • Storage—The size of the DB Snapshot's allocated storage (GB)

  • Status—Status of the DB Snapshot. Valid values: creating | available

  • Master Username—The login name of the database's master user

  • AZ—The original Availability Zone of the database from which the DB Snapshot was taken. This column appears only in the --show-long view.

  • Port—The original port of the database from which the DB Snapshot was taken. This column appears only in the --show-long view.

Examples

Delete a Database Snapshot

This example deletes a DB Snapshot.

PROMPT> rds-delete-db-snapshot mysnapshot
                        
Once you begin deleting this snapshot, it will no longer be available for db
instance restoration.
Are you sure you want to delete this snapshot [Ny]
                            
                    

Output Example

This example shows detailed output with column headers.

                    
DBSNAPSHOT  DBSnapshotId    Snapshot Created         DBInstanceId     Instance Created         Engine    Storage  Status   Master Username
DBSNAPSHOT  mysnapshot      2009-09-03 19:08:13.710  mydbinstance     2009-08-2721:56:55.034   MySQL5.1  10GB     deleted  sa