> This page is for version 0.10.
> For other versions, use one of these documentation indexes:
> - Latest (default): https://docs.nvidia.com/nemo-helix/latest/llms.txt
> - 0.10: https://docs.nvidia.com/nemo-helix/v0.10/llms.txt
> - 0.9: https://docs.nvidia.com/nemo-helix/v0.9/llms.txt
> - 0.8: https://docs.nvidia.com/nemo-helix/v0.8/llms.txt
> - 0.7: https://docs.nvidia.com/nemo-helix/v0.7/llms.txt
> - 0.6: https://docs.nvidia.com/nemo-helix/v0.6/llms.txt
> - 0.5: https://docs.nvidia.com/nemo-helix/v0.5/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo-helix/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo-helix/_mcp/server.

# Delete All ModelDeployment Versions

DELETE http://localhost:8080/apis/models/v2/workspaces/{workspace}/deployments/{name}

Delete all versions of a ModelDeployment.

If the deployment is in any state other than DELETED, this will set its status to DELETING.
The models controller will then:
1. Delete the infrastructure (e.g., K8s NimService)
2. Update the status to DELETED

If the deployment is already in DELETED status, calling delete again will permanently
remove it from the database.

Returns:
- 202 Accepted: Deployment marked for deletion (status set to DELETING)
- 204 No Content: Deployment permanently removed from database (was already DELETED)
- 404 Not Found: Deployment doesn't exist

Reference: https://docs.nvidia.com/nemo-helix/documentation/reference/api-reference/model-deployments/delete-all-deployment-versions-apis-models-v-2-workspaces-workspace-deployments-name-delete

## Request

### Path parameters

- `workspace` (string, required)
- `name` (string, required)

## Response

### 202

Deployment marked for deletion (DELETING status)

- `any`

## Errors

### 404 Not Found Error

Deployment not found

- `any`

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (map from string to any, optional)

### ValidationErrorLocItems

- string
- integer

## Examples

**SDK Code**

```python
import requests

url = "http://localhost:8080/apis/models/v2/workspaces/workspace/deployments/name"

response = requests.delete(url)

print(response.json())
```

```javascript
const url = 'http://localhost:8080/apis/models/v2/workspaces/workspace/deployments/name';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```