Delete Registry

You can remove a registry from HPE Machine Learning Inferencing Software if it is no longer required.

Before You Start

  • You must first delete any packaged models that are associated with the registry before you can remove the registry.

How to Remove a Registry

Via the UI

  1. Sign in to HPE Machine Learning Inferencing Software.
  2. Navigate to Registries.
  3. Scroll to the registry you want to delete.
  4. Select the Ellipses icon.
  5. Select Delete.
  6. Confirm by selecting Yes, Delete.

Via the CLI

  1. Sign in via the CLI.
    aioli user login <YOUR_USERNAME>
  2. Delete the registry with the following command:
     aioli registry delete <REGISTRY_NAME>

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. Get a list of registries to find the registry ID.
    curl -X 'GET' \
         '<YOUR_EXT_CLUSTER_IP>/api/v1/registries' \
         -H 'accept: application/json' \
         -H 'Authorization : Bearer <YOUR_ACCESS_TOKEN>'
  4. Copy the registry ID from the response.
  5. Use the following cURL command to delete the registry.
    curl -X 'DELETE' \
      '<YOUR_EXT_CLUSTER_IP>/api/v1/registries/<REGISTRY_ID>' \
      -H 'accept: application/json' \
      -H 'Authorization: Bearer <YOUR_ACCESS_TOKEN>'