Delete Users

Before You Start

  • Ensure tha you are logged in to HPE Machine Learning Inferencing Software as an admin user.
  • If you are using the API, ensure that you have the user’s ID before proceeding.

How to Delete Users

Via the CLI

aioli user deactivate <USERNAME>

Via the API

  1. Sign in to HPE Machine Learning Inferencing Software.
    curl -X 'POST' \
      '<YOUR_EXT_CLUSTER_IP>/api/v1/login' \
      -H 'accept: application/json' \
      -H 'Content-Type: application/json' \
      -d '{
      "username": "<YOUR_USERNAME>",
      "password": "<YOUR_PASSWORD>"
    }'
  2. Obtain the Bearer token from the response.
  3. Send a DELETE request to create a user.
    curl -X 'DELETE' \
         '<YOUR_EXT_CLUSTER_IP>/api/v1/users/<USER_ID>' \
         -H 'accept: application/json' \
         -H 'Content-Type: application/json' \
         -H 'Authorization: Bearer <YOUR_ACCESS_TOKEN>'