AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 3.5
The DeleteDBInstance action deletes a previously provisioned DB instance. A successful response from the web service indicates the request was received correctly. When you delete a DB instance, all automated backups for that instance are deleted and cannot be recovered. Manual DB snapshots of the DB instance to be deleted are not deleted.

If a final DB snapshot is requested the status of the RDS instance will be "deleting" until the DB snapshot is created. The API action DescribeDBInstance is used to monitor the status of this operation. The action cannot be canceled or reverted once submitted.

Note that when a DB instance is in a failure state and has a status of 'failed', 'incompatible-restore', or 'incompatible-network', it can only be deleted when the SkipFinalSnapshot parameter is set to "true".

Namespace: Amazon.RDS
Assembly: AWSSDK.dll
Version: (assembly version)


public abstract DeleteDBInstanceResponse DeleteDBInstance(
         DeleteDBInstanceRequest request


Type: Amazon.RDS.Model.DeleteDBInstanceRequest

Container for the necessary parameters to execute the DeleteDBInstance service method.

Return Value
Type: Amazon.RDS.Model.DeleteDBInstanceResponse
The response from the DeleteDBInstance service method, as returned by RDS.


DBInstanceNotFoundException DBInstanceIdentifier does not refer to an existing DB instance.
DBSnapshotAlreadyExistsException DBSnapshotIdentifier is already used by an existing snapshot.
InvalidDBInstanceStateException The specified DB instance is not in the available state.
SnapshotQuotaExceededException Request would result in user exceeding the allowed number of DB snapshots.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5