Delete an IAM group from your Vultr organization. Remove the group and disassociate all member users from the shared roles and policies it previously held.
Deleting a group removes it from your organization. Users who were members of the group are not deleted, but they lose any roles and policies that were assigned through the group.
iam.group.* permissions assigned to perform this action.
This guide explains how to delete a group using the Vultr Console or the Vultr API.
Log in to the Vultr Console.
Click the organization name in the top navigation bar.
Click Manage Organization.
Click the Groups tab.
Locate the group you want to delete and click the Delete icon next to it.
In the confirmation dialog, click Delete to confirm.
The group is removed from the organization.
Send a GET request to the List Groups endpoint to retrieve all groups in your organization.
$ curl "https://api.vultr.com/v2/groups" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Note the id of the group you want to delete.
Send a DELETE request to the Delete Group endpoint to delete the group. Replace {group-id} with the id of the group you want to delete.
$ curl "https://api.vultr.com/v2/groups/{group-id}" \
-X DELETE \
-H "Authorization: Bearer ${VULTR_API_KEY}"
A successful deletion returns an HTTP 204 No Content response with no response body.
Send a GET request to the List Groups endpoint to retrieve all groups.
$ curl "https://api.vultr.com/v2/groups" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Verify that the deleted group no longer appears in the list.