Home > Article > Operation and Maintenance > How to delete the security group after there are no ECS instances in the security group
The content of this article is about how to delete the security group after there is no ECS instance in the security group. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
Delete Security Group
If your business no longer needs one or more security groups, you can delete the security group. After a security group is deleted, all security group rules in the group will be deleted at the same time.
Prerequisites
Deleting a security group must meet the following conditions:
There is no ECS instance in the security group. To remove an ECS instance from a security group, see Joining and Removing a Security Group.
The security group has not been added with security group rules by other security groups. You can directly delete the security group by following the steps described in this article. If the security group is authorized by other security groups, you will see an error message as shown in the figure below. Delete the corresponding authorization rule.
Operation steps
Follow the following steps to delete the security group:
Log in to ECS Management console.
In the left navigation bar, select Network and Security > Security Group.
Select a region.
Select one or more security groups, and at the bottom of the list, click Delete.
In the Delete Security Group dialog box, after confirming the information, click OK.
Related API
Delete security group: DeleteSecurityGroup
Query the authorization between a security group and other security groups Relationship: DescribeSecurityGroupReferences
Move the ECS instance out of the security group: LeaveSecurityGroup
The above is the detailed content of How to delete the security group after there are no ECS instances in the security group. For more information, please follow other related articles on the PHP Chinese website!