Delete Packaged Model

You can delete a packaged model from HPE Machine Learning Inferencing Software if it is no longer required. This action will revoke access to any services that use that model.


How to Delete a Packaged Model

Via the UI

  1. Sign in to HPE Machine Learning Inferencing Software.
  2. Navigate to the Packaged Models page.
  3. Select the Ellipsis icon next to the model you want to delete.
  4. Select Delete.
  5. Select Yes, Delete.

Via the CLI

  1. Sign in via the CLI.
    aioli user login <YOUR_USERNAME>
  2. Delete the packaged model with the following command:
     aioli model delete <MODEL_NAME> <VERSION_NUMBER>

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