Deleting a security group removes it and its rules from your account. A group can be deleted once nothing is using it: it is detached from every resource, and it is not the default.
Before you begin
Section titled “Before you begin”- The group is not the default. If its Default column marks it, first set another group as default.
- Nothing is attached to the group. Select it in Network > Security Group and check the Associated Nodes, Associated Scaler, Associated Kubernetes, and Associated Load Balancer tabs. Detach anything listed there; for a node, see Detach a security group from a node.
Delete the group
Section titled “Delete the group”A deleted group cannot be brought back, so note its rules first if you want to reuse them.
- Open Network > Security Group.
- Open the group’s Actions menu and choose Delete.
- In Delete Security Group?, check the name and click Delete.
The group leaves the list.
Your account now holds only the groups you use. If the delete is refused, Troubleshooting Security Group explains both messages.