Delete NIM Deployment#

Delete a NIM deployment by specifying the namespace and the deployment name of the deployment.

Prerequisites#

Before you can delete a NIM deployment, make sure that you have:

  • Access to the NeMo Deployment Management service through the NeMo platform host if you have installed the NeMo platform or the independent base URL if you have installed the service individually. Store the base URL in an environment variable DEPLOYMENT_SERVICE_URL.

  • The namespace and name of the deployment to delete.


Options#

You can delete a NIM deployment in the following ways.

API#

  1. Submit a DELETE request to /v1/deployment/model-deployments/<namespace>/<deployment_name>.

    Use the following cURL command. For more details on the request body, see the Deployment Management API reference.

    curl -X DELETE \
      "${DEPLOYMENT_SERVICE_URL}/v1/deployment/model-deployments/<namespace>/<deployment_name>" \
      -H 'accept: application/json' | jq
    
  2. Review the response.

    Example Response

    The following is an example of a successful response.

    {
      "message": "Resource deleted successfully.",
      "id": "string",
      "deleted_at": "string"
    }
    

    For more information about the response of the API, see the Deployment Management API reference.

    Tip

    The deletion process may take a few minutes to complete. All resources associated with the deployment will be removed.