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


Deletes a DB security group.


The specified DB security 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 DB security group to delete.


You can't delete the default DB security group.


  • Must be 1 to 255 letters, numbers, or hyphens.

  • First character must be a letter

  • Can't end with a hyphen or contain two consecutive hyphens

  • Must not be "Default"

Type: String

Required: Yes


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


DBSecurityGroupName doesn't refer to an existing DB security group.

HTTP Status Code: 404


The state of the DB security group doesn't allow deletion.

HTTP Status Code: 400



This example illustrates one usage of DeleteDBSecurityGroup.

Sample Request ?Action=DeleteDBSecurityGroup &DBSecurityGroupName=mydbsecuritygroup &SignatureMethod=HmacSHA256 &SignatureVersion=4 &Version=2014-09-01 &X-Amz-Algorithm=AWS4-HMAC-SHA256 &X-Amz-Credential=AKIADQKE4SARGYLE/20140423/us-east-1/rds/aws4_request &X-Amz-Date=20140423T203336Z &X-Amz-SignedHeaders=content-type;host;user-agent;x-amz-content-sha256;x-amz-date &X-Amz-Signature=873c15061fe60b9db8ea63137e5af82b157019696fc3e9764ef2abd9d71c640a

Sample Response

<DeleteDBSecurityGroupResponse xmlns=""> <ResponseMetadata> <RequestId>7aec7454-ba25-11d3-855b-576787000e19</RequestId> </ResponseMetadata> </DeleteDBSecurityGroupResponse>

See Also

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