DeleteSecurityGroup

The DeleteSecurityGroup operation deletes a security group.

If an attempt is made to delete a security group and any instances exist that are members of that group a fault is returned.

The following table describes the request parameters for DeleteSecurityGroup. Parameter names are case sensitive.

Element NameDefinitionRequired?Type
GroupName Name of the security group to delete. Yesstring

The following table describes the default response tags included in DeleteSecurityGroup responses.

Element NameDefinitionType
return true if group deleted.xsd:boolean
https://ec2.amazonaws.com/
?Action=DeleteSecurityGroup
&GroupName=RangedPortsBySource
&...auth parameters...
<DeleteSecurityGroupResponse xmlns="http://ec2.amazonaws.com/doc/2007-03-01">
  <return>true</return>
</DeleteSecurityGroupResponse>