This topic describes how to delete security groups that are no longer needed. When a security group is deleted, its rules are also deleted.

Prerequisites

  • The security group that you want to delete does not contain Elastic Compute Service (ECS) instances. If the security group that you want to delete contains ECS instances, you must remove the instances from the security group. For more information, see Remove an instance from a security group.
  • The security group is not referenced by rules of other security groups. If the security group is referenced by rules of other security groups, you must delete those rules as prompted. For more information, see Delete a security group rule. Delete a security group

Procedure

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Network & Security > Security Groups.
  3. In the top navigation bar, select a region.
  4. On the Security Groups page, select one or more security groups and click Delete in the lower part of the security group list.
  5. In the Delete Security Group message, confirm the information and click OK.