Deleting a Security Group
You can delete a custom security group that is no longer used for any instance or in any security group rule, and that does not contain any rule.
You cannot delete default security groups.
Deleting a Security Group Using Cockpit v1
Before you begin: Ensure that the security group you want to delete:
For more information, see Getting Information About Your Security Groups and Removing Rules from a Security Group. |
-
Click Network/Security > Security Groups.
-
Click the security group you want to delete.
Multiselection is available.
The security group is selected.
-
Click Delete .
A confirmation dialog box appears. -
Click Delete to validate.
The security group is deleted and no longer appears on the Security Groups page.
Deleting a Security Group Using Cockpit v2-beta
Before you begin: Ensure that the security group you want to delete:
For more information, see Getting Information About Your Security Groups and Removing Rules from a Security Group. |
-
Click inside the Security Groups dashboard to make checkboxes appear.
-
Check the box of the security group you want to delete.
Multiselection is available.
The security group is selected and an action menu appears.
-
Click
Delete.
A confirmation dialog box appears. -
Click Delete.
The security group is deleted.
Deleting a Security Group Using OSC CLI
Before you begin: Ensure that the security group you want to delete:
For more information, see Getting Information About Your Security Groups and Removing Rules from a Security Group. |
See the DeleteSecurityGroup command sample in the documentation of the OUTSCALE API. |
Deleting a Security Group Using AWS CLI
Before you begin: Ensure that the security group you want to delete:
For more information, see Getting Information About Your Security Groups and Removing Rules from a Security Group. |
To delete a security group, use the delete-security-group command following this syntax:
$ aws ec2 delete-security-group \
--profile YOUR_PROFILE \
--group-id sg-12345678 \
--group-name my-security-group \
--endpoint https://fcu.eu-west-2.outscale.com
This command contains the following attributes that you need to specify:
-
(optional)
profile
: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI. -
(optional)
group-id
: The ID of the security group. -
(optional)
group-name
: The name of the security group.-
In a Virtual Private Cloud (VPC), you need to specify the
group-id
attribute. -
In the public Cloud, you can specify the
group-id
or thegroup-name
attribute.
-
-
endpoint
: The endpoint corresponding to the Region you want to send the request to.
The specified security group is deleted.
Related Pages
Corresponding API Methods
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.