Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to Digg

DeleteSecurityGroup

Description

Deletes a security group that you own.

[Note]Note

If you attempt to delete a security group that contains instances, a fault is returned.

If you attempt to delete a security group that is referenced by another security group, a fault is returned. For example, if security group B has a rule that allows access from security group A, security group A cannot be deleted until the allow rule is removed.

Request Parameters

NameDescriptionRequired

GroupName

Name of the security group to delete.

Type: String

Default: None

Yes

Response Elements

The elements in the following table come wrapped in a DeleteSecurityGroupResponse structure.

NameDescription

requestId

The ID of the request.

Type: xsd:string

return

Returns true if the request succeeds. Otherwise, returns an error.

Type: xsd:boolean

Examples

Example Request

This example deletes the websrv security group.

https://ec2.amazonaws.com/?Action=DeleteSecurityGroup
&GroupName=websrv
&AuthParams

Example Response

<DeleteSecurityGroupResponse xmlns="http://ec2.amazonaws.com/doc/2010-08-31/">
  <return>true</return>
</DeleteSecurityGroupResponse>