> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memorylake.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 移除文档

> 从项目中批量移除文档

```
DELETE /openapi/memorylake/api/v1/projects/{id}/documents
```

从项目中移除一个或多个文档。

<Warning>
  这是一个破坏性操作。文档关联将被永久移除。
</Warning>

<Note>
  **所需权限：** [`project:doc_delete`](/zh/features/team-collaboration/permission-reference#从项目移除文档) · `instance`
</Note>

### 路径参数

<ParamField path="id" type="string" required>
  项目 ID
</ParamField>

### 请求体

<ParamField body="ids" type="array" required>
  要移除的项目文档 ID 列表
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE 'https://app.memorylake.ai/openapi/memorylake/api/v1/projects/proj-a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6/documents' \
    -H 'Authorization: Bearer sk_xxxxxx' \
    -H 'Content-Type: application/json' \
    -d '{
      "ids": ["doc-1234567890abcdef", "doc-abcdef1234567890"]
    }'
  ```
</RequestExample>

### 响应

<ResponseField name="success" type="boolean">表示请求是否成功</ResponseField>
<ResponseField name="message" type="string">人类可读的状态消息</ResponseField>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "success": true,
    "message": "Documents removed successfully"
  }
  ```
</ResponseExample>
