You can call this API to delete a security group that is no longer used.
Before deleting a security group, ensure that the security group is not associated with any instance.
DELETE /v3/{project_id}/vpc/security-groups/{security_group_id}
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
|
security_group_id |
Yes |
String |
|
None
Status code: 204
Normal response to the DELETE operation. For more status codes, see Status Codes.
None
Deleting a security group
DELETE https://{Endpoint}/v3/{project_id}/vpc/security-groups/69c999ad-d9ef-4d79-94fd-35e6ceb75325
None
Status Code |
Description |
|---|---|
204 |
Normal response to the DELETE operation. For more status codes, see Status Codes. |
See Error Codes.