DeleteDBSubnetGroup - Amazon Relational Database Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Deletes a DB subnet group.


The specified database subnet group must not be associated with any DB instances.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.


The name of the database subnet group to delete.


You can't delete the default subnet group.

Constraints: Must match the name of an existing DBSubnetGroup. Must not be default.

Example: mydbsubnetgroup

Type: String

Required: Yes


For information about the errors that are common to all actions, see Common Errors.


DBSubnetGroupName doesn't refer to an existing DB subnet group.

HTTP Status Code: 404


The DB subnet group cannot be deleted because it's in use.

HTTP Status Code: 400


The DB subnet isn't in the available state.

HTTP Status Code: 400



This example illustrates one usage of DeleteDBSubnetGroup.

Sample Request ?Action=DeleteDBSubnetGroup &DBSubnetGroupName=myawsuser-dbsubnetgroup &SignatureMethod=HmacSHA256 &SignatureVersion=4 &Version=2014-10-31 &X-Amz-Algorithm=AWS4-HMAC-SHA256 &X-Amz-Credential=AKIADQKE4SARGYLE/20140425/us-east-1/rds/aws4_request &X-Amz-Date=20140425T180721Z &X-Amz-SignedHeaders=content-type;host;user-agent;x-amz-content-sha256;x-amz-date &X-Amz-Signature=0f461da21ec03527fdc98acba8a11c36863a399065f9b4ff891ab7cb5e70de74

Sample Response

<DeleteDBSubnetGroupResponse xmlns=""> <ResponseMetadata> <RequestId>6295e5ab-bbf3-11d3-f4c6-37db295f7674</RequestId> </ResponseMetadata> </DeleteDBSubnetGroupResponse>

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: