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. Yesxsd:string

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

Element NameDefinitionType
return true if group deleted.xsd:boolean
<DeleteSecurityGroup xmlns="http://ec2.amazonaws.com/doc/2007-03-01">
    <groupName>RangedPortsBySource</groupName>
</DeleteSecurityGroup>
<DeleteSecurityGroupResponse xmlns="http://ec2.amazonaws.com/doc/2007-03-01">
  <return>true</return>
</DeleteSecurityGroupResponse>