If you no longer need a security group, you can delete it. Once a security group is deleted, all rules within it are also deleted.
Before deleting a security group, you must remove all associated instances. Otherwise, the operation will fail. For more information, see Removing Instance from Security Group.
Was this page helpful?