DeleteSecurityGroup
The DeleteSecurityGroup
operation deletes a
security group.
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
The following table describes the request parameters for
DeleteSecurityGroup
. Parameter names are
case sensitive.
Note | |
---|---|
A security group cannot be deleted if it is referenced by another security group. 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. |
Name | Description | Required |
---|---|---|
|
Name of the security group to delete. Type: String |
Yes |
Response Elements
The following table describes the default response tags included
in DeleteSecurityGroup
responses.
Name | Description |
---|---|
|
Type: xsd:boolean |
Sample Request
https://ec2.amazonaws.com/ ?Action=DeleteSecurityGroup &GroupName=RangedPortsBySource &...auth parameters...
Sample Response
<DeleteSecurityGroupResponse xmlns="http://ec2.amazonaws.com/doc/2008-05-05"> <return>true</return> </DeleteSecurityGroupResponse>