Deleting groups

Removing user groups from the OpenStack Identity service is a simple one step. In this example, we will show how to delete a group named oldgroup. Note that when you delete a group, it doesn't delete the users assigned to the group. The role and group permission mappings will be gone, and as a result, users may lose permissions.

Getting ready

Ensure that you are logged on to a correctly configured OpenStack client and can access the OpenStack environment as a user with admin privileges.

Refer to Chapter 2, The OpenStack Client, for details of setting up your environment to use OpenStack command-line client.

How to do it…

In order to delete a user group, execute the following commands:

  1. Get the group's name from a current group list:
    openstack group list
    
    How to do it…
  2. Delete the oldgroup group:
    openstack group delete oldgroup
    

    This command will have no output.

How it works…

Deleting unnecessary groups is simple when using OpenStack command-line tool. Start with a command to get existing group:

openstack group list

Delete a group by executing the following:

openstack group delete <group>

Here the <group> parameter can be either group ID or group name.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.173.249