English ← MyDocs

删除文件

delete /v1/compliance/apps/chats/files/{claude_file_id}

永久删除特定文件。此操作为破坏性操作,无法撤销。

路径参数

  • claude_file_id: string

    文件 ID(带标签的 ID,例如 claude_file_abc123)

请求头参数

  • "x-api-key": optional string

返回值

  • id: string

    已删除文件的 ID

  • type: optional "claude_file_deleted"

    确认删除的常量字符串

    • "claude_file_deleted"

示例

curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID \
    -X DELETE \
    -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"

响应

{
  "id": "claude_file_xyz789",
  "type": "claude_file_deleted"
}