<span id="工作区式大语言模型删除后端"></span>

# Delete an LLM backend (workspace endpoint)

```{raw} html
<div class="mo-api-page-show-toc" aria-hidden="true"></div>
```

Delete an LLM backend and its endpoints.


```http
DELETE https://api.moi.matrixorigin.cn/v5/workspaces/{workspace_id}/llm/backends/{backend_id}
```

<span id="调用前准备"></span>

## Before you call this API

`BASE_URL` uses the product API prefix `https://api.moi.matrixorigin.cn/v5`. For a dedicated deployment, use its corresponding product API address.

[Configure identity, Workspace, and object permissions in the same environment](objects.md#prepare).

<span id="请求"></span>

## Request

:::::::{div} mo-api-tabs
::::::{tab-set}
:::::{tab-item} Request example

```bash
curl --include --request DELETE \
  "$BASE_URL/workspaces/$WORKSPACE_ID/llm/backends/$BACKEND_ID" \
  --header "X-API-Key: $MOI_KEY" \
  --header "X-Workspace-ID: $WORKSPACE_ID"
```

:::::
:::::{tab-item} Parameters

| Parameter | Location | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `X-Workspace-ID` | Header | string | Yes | Workspace ID in the same environment. |
| `workspace_id` | Path | string | Yes | Workspace ID in the same environment. |
| `backend_id` | Path | integer | Yes | Positive ID returned by an earlier read. |

Requires object model_backend.delete. Backend and endpoint deletion outcomes depend on the transaction and IAM lifecycle together. DAO handling of missing rows is not a public idempotency guarantee.

:::::
::::::
:::::::

<span id="成功响应"></span>

## Successful response

:::::::{div} mo-api-tabs mo-api-response-tabs
::::::{tab-set}
:::::{tab-item} Response example

```http
HTTP/1.1 204 No Content
```

:::::
:::::{tab-item} Fields

HTTP 204。

HTTP 204 has no response body.

:::::
::::::
:::::::

<span id="错误响应"></span>

## Error response

[Errors and result confirmation](objects.md#errors) distinguishes the two protocols. Parse omitted fields, SDK zero values, and empty HTTP responses separately. Confirm writes using the corresponding read operation.
