<span id="删除解析后端"></span>

# Delete a parser backend

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

Delete the specified parser backend and its endpoints.


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

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

## Before you call this API

Set `BASE_URL` to the product API prefix `https://api.moi.matrixorigin.cn/v5`; use the corresponding product API URL for a dedicated deployment.

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

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

## Request

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

```bash
curl --request DELETE \
  "$BASE_URL/parser/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` | Headers | string | Yes | Workspace ID in the same environment. |
| `backend_id` | Path | integer | Yes | Canonical positive integer ID returned by creation/read for the same Parser kind. |

Requires object delete permission. Deletes the backend/endpoints through the formal lifecycle. Returns HTTP 200 with data:null; SDK/CLI may synthesize success:true. Handle missing objects, references, and failures through actual admission and error rules. A storage branch does not establish public idempotency.

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

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

## Successful response

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

```json
{
  "code": "OK",
  "msg": "OK",
  "data": null
}
```

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

| Field | Type | Description |
| --- | --- | --- |
| `code` | string | HTTP 200, OK on success. |
| `msg` | string | OK on success. |
| `data` | null | [Actual objects or null values](objects.md#responses). Do not infer wrappers from LLM APIs. |

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

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

## Error responses

[Errors and result confirmation](objects.md#errors) distinguishes actual inputs, object admission, and business results.
