| Did this page help you? Yes No Tell us about it... |
The DeleteDBInstance API deletes a previously provisioned RDS instance. A successful response from the web service indicates the request was received correctly. If a final DBSnapshot is requested the status of the RDS instance will be "deleting" until the DBSnapshot is created. DescribeDBInstance is used to monitor the status of this operation. This cannot be canceled or reverted once submitted.
For information about the common parameters that all actions use, see Common Query Parameters.
| Name | Description | Required | |||
|---|---|---|---|---|---|
DBInstanceIdentifier
|
The DB Instance identifier for the DB Instance to be deleted. This parameter isn't case sensitive. Constraints:
Type: String | Yes | |||
FinalDBSnapshotIdentifier
|
The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot
is set to
Constraints:
Type: String | No | |||
SkipFinalSnapshot
|
Determines whether a final DB Snapshot is created before the DB Instance is deleted.
If
Default: Type: Boolean | No |
DBInstance
structure.
| Name | Description |
|---|---|
AllocatedStorage
|
Specifies the allocated storage size specified in gigabytes. Type: Integer |
AutoMinorVersionUpgrade
|
Indicates that minor version patches are applied automatically. Type: Boolean |
AvailabilityZone
|
Specifies the name of the Availability Zone the DB Instance is located in. Type: String |
BackupRetentionPeriod
|
Specifies the number of days for which automatic DB Snapshots are retained. Type: Integer |
CharacterSetName
|
If present, specifies the name of the character set that this instance is associated with. Type: String |
DBInstanceClass
|
Contains the name of the compute and memory capacity class of the DB Instance. Type: String |
DBInstanceIdentifier
|
Contains a user-supplied database identifier. This is the unique key that identifies a DB Instance. Type: String |
DBInstanceStatus
|
Specifies the current state of this database. Type: String |
DBName
|
The meaning of this parameter differs according to the database engine you use. MySQL Contains the name of the initial database of this instance that was provided at create time, if one was specified when the DB Instance was created. This same name is returned for the life of the DB Instance. Type: String Oracle Contains the Oracle System ID (SID) of the created DB Instance. Type: String |
DBParameterGroups
|
Provides the list of DB Parameter Groups applied to this DB Instance. Type: DBParameterGroupStatus list |
DBSecurityGroups
|
Provides List of DB Security Group elements containing only
Type: DBSecurityGroupMembership list |
DBSubnetGroup
|
Provides the inforamtion of the subnet group associated with the DB instance, including the name, descrption and subnets in the subnet group. Type: DBSubnetGroup |
Endpoint
|
Specifies the connection endpoint. Type: Endpoint |
Engine
|
Provides the name of the database engine to be used for this DB Instance. Type: String |
EngineVersion
|
Indicates the database engine version. Type: String |
InstanceCreateTime
|
Provides the date and time the DB Instance was created. Type: DateTime |
LatestRestorableTime
|
Specifies the latest time to which a database can be restored with point-in-time restore. Type: DateTime |
LicenseModel
|
License model information for this DB Instance. Type: String |
MasterUsername
|
Contains the master username for the DB Instance. Type: String |
MultiAZ
|
Specifies if the DB Instance is a Multi-AZ deployment. Type: Boolean |
OptionGroupMembership
|
Specifies the name and status of the option group that this instance belongs to. Type: OptionGroupMembership |
PendingModifiedValues
|
Specifies that changes to the DB Instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements. Type: PendingModifiedValues |
PreferredBackupWindow
|
Specifies the daily time range during which automated backups are
created if automated backups are enabled, as determined
by the Type: String |
PreferredMaintenanceWindow
|
Specifies the weekly time range (in UTC) during which system maintenance can occur. Type: String |
ReadReplicaDBInstanceIdentifiers
|
Contains one or more identifiers of the Read Replicas associated with this DB Instance. Type: String list |
ReadReplicaSourceDBInstanceIdentifier
|
Contains the identifier of the source DB Instance if this DB Instance is a Read Replica. Type: String |
For information about the common errors that all actions use, see Common Errors.
| Error | Description | HTTP Status Code |
|---|---|---|
DBInstanceNotFound
|
DBInstanceIdentifier does not refer to an existing DB Instance. | 404 |
DBSnapshotAlreadyExists
|
DBSnapshotIdentifier is already used by an existing snapshot. | 400 |
InvalidDBInstanceState
|
The specified DB Instance is not in the available state. | 400 |
SnapshotQuotaExceeded
|
Request would result in user exceeding the allowed number of DB Snapshots. | 400 |
https://rds.amazonaws.com/ ?Action=DeleteDBInstance &DBInstanceIdentifier=myrestoreddbinstance &SkipFinalSnapshot=true &Version=2012-04-23 &Timestamp=2011-05-23T07%3A19%3A35.947Z &SignatureVersion=2 &SignatureMethod=HmacSHA256 &AWSAccessKeyId=<AWS Access Key ID> &Signature=<Signature>
<DeleteDBInstanceResponse xmlns="http://rds.amazonaws.com/doc/2012-04-23/">
<DeleteDBInstanceResult>
<DBInstance>
<ReadReplicaDBInstanceIdentifiers/>
<LatestRestorableTime>2011-05-23T07:15:00Z</LatestRestorableTime>
<Engine>mysql</Engine>
<PendingModifiedValues/>
<BackupRetentionPeriod>1</BackupRetentionPeriod>
<MultiAZ>false</MultiAZ>
<LicenseModel>general-public-license</LicenseModel>
<DBInstanceStatus>deleting</DBInstanceStatus>
<EngineVersion>5.1.50</EngineVersion>
<Endpoint>
<Port>3306</Port>
<Address>myrestoreddbinstance.cu7u2t4uz396.us-east.rds.amazonaws.com</Address>
</Endpoint>
<DBInstanceIdentifier>myrestoreddbinstance</DBInstanceIdentifier>
<DBParameterGroups>
<DBParameterGroup>
<ParameterApplyStatus>in-sync</ParameterApplyStatus>
<DBParameterGroupName>default.mysql5.1</DBParameterGroupName>
</DBParameterGroup>
</DBParameterGroups>
<DBSecurityGroups>
<DBSecurityGroup>
<Status>active</Status>
<DBSecurityGroupName>default</DBSecurityGroupName>
</DBSecurityGroup>
</DBSecurityGroups>
<PreferredBackupWindow>00:00-00:30</PreferredBackupWindow>
<AutoMinorVersionUpgrade>true</AutoMinorVersionUpgrade>
<PreferredMaintenanceWindow>sat:07:30-sat:08:00</PreferredMaintenanceWindow>
<AvailabilityZone>us-east-1d</AvailabilityZone>
<InstanceCreateTime>2011-05-23T06:52:48.255Z</InstanceCreateTime>
<AllocatedStorage>10</AllocatedStorage>
<DBInstanceClass>db.m1.large</DBInstanceClass>
<MasterUsername>master</MasterUsername>
</DBInstance>
</DeleteDBInstanceResult>
<ResponseMetadata>
<RequestId>03ea4ae8-850d-11e0-90aa-eb648410240d</RequestId>
</ResponseMetadata>
</DeleteDBInstanceResponse>