Delete a specific user and the associated user profile.
- Establish a CLI session on the Bare Metal Orchestrator VM and log in. For high availability configurations, establish a CLI session using the virtual IP (VIP) of the Load Balancers for the Bare Metal Orchestrator cluster.
- Create token. Run the following command:
bmo create token --username admin --password <PASSWORD> --update-kubeconfig=<kube-config-path>
where username and password are the admin user credentials.
Note: The create token command creates three tokens:- Access token - required for user create, read, update, and delete operations.
- ID token - required for all Bare Metal Orchestrator operations.
- Refresh token - required to refresh the access token and the ID token.
- Export the token. Run the following command:
export token=<access-token>
- To delete a user, run the following command:
bmo delete user <username> --token $token
where username is the name of the user to be deleted.
For example:
bmo delete user john-smith --token $token
Note: Repeat these steps to delete multiple users.