Delete Model#

Prerequisites#

Before you can delete a model, make sure that you have:

  • Access to the NeMo Entity Store Microservice.

  • The model’s namespace and name.


How to Delete a Model#

API#

  1. Make a DELETE request to the /v1/models/{namespace}/{name} endpoint.

    ENTITY_STORE_BASE_URL="<URL for NeMo Entity Store>"
    NAMESPACE="team-docs"
    MODEL_NAME="documentation-test-model"
    
    curl -X DELETE "${ENTITY_STORE_BASE_URL}/v1/models/${NAMESPACE}/${MODEL_NAME}" \
      -H 'Accept: application/json' \
      -H 'Content-Type: application/json' | jq
    
  2. Check the model details by reviewing the response.

    Example Response
    {
      "message": "Resource deleted successfully.",
      "id": "model-T3r9RkWfw9ctowpcQ9fri5",
      "deleted_at": null
    }