DeleteSecurityGroup
Description
Deletes a security group that you own.
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
Name | Description | Required |
---|---|---|
|
Type: |
Ancestor: None
Children: groupName
groupName
Name of the security group to delete.
Type: xsd:string
Default: None
Ancestor: DeleteSecurityGroupType
Children: None
Yes
Response Elements
Name | Description |
---|---|
|
Type: DeleteSecurityGroupResponseType Ancestor: None Children: |
|
The ID of the request. Type: xsd:string Ancestor: Children: None |
|
Returns Type: xsd:boolean Ancestor: Children: None |
Examples
Example Request
This example deletes the websrv
security group.
<DeleteSecurityGroup xmlns="http://ec2.amazonaws.com/doc/2009-08-15/"> <groupName>websrv</groupName> </DeleteSecurityGroup>
Example Response
<DeleteSecurityGroupResponse xmlns="http://ec2.amazonaws.com/doc/2009-08-15/"> <return>true</return> </DeleteSecurityGroupResponse>