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).

DeleteDBSubnetGroup

Deletes a DB subnet group.

Note

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.

DBSubnetGroupName

The name of the database subnet group to delete.

Note

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

Errors

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

DBSubnetGroupNotFoundFault

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

HTTP Status Code: 404

InvalidDBSubnetGroupStateFault

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

HTTP Status Code: 400

InvalidDBSubnetStateFault

The DB subnet isn't in the available state.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of DeleteDBSubnetGroup.

Sample Request

https://rds.us-east-1.amazonaws.com/ ?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="http://rds.amazonaws.com/doc/2014-10-31/"> <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: