Deleting a Security Group

Scenarios

You can delete a security group to release resources if the security group is no longer required.

Notes and Constraints

  • The default security group cannot be deleted.
  • If a security group is associated with resources other than servers and extension NICs, the security group cannot be deleted.

Prerequisites

  • Before deleting a security group, ensure that the security group is not used by any cloud resource, such as ECS, Relational Database Service (RDS), and Distributed Cache Service (DCS). If the security group is used by any cloud resource, release the corresponding cloud resource or change the security group used by the cloud resource, and then delete the security group.
  • If the security group to be deleted has been associated with rules of another security group (Source), delete or modify the associated security group rules, and then delete the security group.

Procedure

  1. Log in to the management console.
  1. Click in the upper left corner and select the desired region and project.
  2. On the console homepage, under Network, click Virtual Private Cloud.
  3. In the navigation pane on the left, choose Access Control > Security Groups.
  4. On the Security Groups page, locate the row that contains the target security group, click More in the Operation column, and click Delete.
  5. Click Yes in the displayed dialog box.