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

# 删除条目扩展属性

> 从文件库条目中移除指定的扩展属性键

```
DELETE /openapi/memorylake/api/v1/drives/items/{item_id}/xattrs?key={comma-separated-keys}
```

从文件库的文件或文件夹中移除一个或多个扩展属性键。仅移除您列出的键；该条目上的其他 xattrs 保持不变。

<Warning>
  此操作不可逆。调用后，所列出的 xattr 值即被清除。条目本身**不受影响** — 只移除列出的元数据键。
</Warning>

<Note>
  系统保留的 xattr 键不能删除；在 `key` 列表中包含它们会被拒绝。系统根文件夹（`My Space`、`WPS Space`、`Lark Space`）完全拒绝 xattr 删除并返回 `403`。
</Note>

<Note>
  **所需权限：** [`drive:item_modify`](/features/team-collaboration/permission-reference#编辑文件) · `service`
</Note>

### 路径参数

<ParamField path="item_id" type="string" required>
  要移除 xattrs 的文件或文件夹的 ID。
</ParamField>

### 查询参数

<ParamField query="key" type="string" required>
  要删除的 xattr 键列表，以逗号分隔，例如 `key=tenant_id,review_status`。至少需要一个键。
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE 'https://app.memorylake.cn/openapi/memorylake/api/v1/drives/items/sc-5c6bf0f82d624a20a6fa4696997bdd46:7d8cf1e93f634b31b5/xattrs?key=tenant_id,review_status' \
    -H 'Authorization: Bearer sk_xxxxxx'
  ```
</RequestExample>

### 响应

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

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

<Tip>
  要确认操作后条目上还剩哪些 xattrs，请调用[获取条目](/features/memorylake/api-reference/library/get-item) — 其响应包含当前的 `x_attrs` 映射。
</Tip>
