You can delete security groups, if you no longer require them.
- Before deleting a security group, ensure it does not contain instances and is not referenced in the rules of another security group.
- Deleting a security group will delete all its rules.
To delete a security group, follow these steps:
Log on to the ECS console.
In the left-side navigation pane, click Networks & Security > Security Groups.
Select a region to display a list of all the security groups in the region.
Select one or more security groups.
In the displayed dialog box, click OK.