> 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 VirtualModel

DELETE http://localhost:8080/apis/inference-gateway/v2/workspaces/{workspace}/virtual-models/{name}

Permanently delete a VirtualModel.

This does not affect any in-flight requests already being routed through
this VirtualModel.  IGW's model cache is refreshed on its next polling cycle.

Reference: https://docs.nvidia.com/nemo-helix/documentation/reference/api-reference/virtual-models/delete-virtual-model

## Request

### Path parameters

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

### Query parameters

- `expected_db_version` (integer, optional) — Optional database version for optimistic locking. Delete only succeeds if the VirtualModel still has this version.

## Response

### 204

VirtualModel deleted

## Errors

### 404 Not Found Error

VirtualModel not found.

- `any`

### 409 Conflict Error

VirtualModel was modified before it could be deleted.

- `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/inference-gateway/v2/workspaces/default/virtual-models/my-virtual-model"

response = requests.request("DELETE", url)
response.raise_for_status()
print(response.status_code)  # no response body

```

```javascript
const response = await fetch("http://localhost:8080/apis/inference-gateway/v2/workspaces/default/virtual-models/my-virtual-model", {
  method: "DELETE",
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(response.status); // no response body

```