Anthropic

删除文件

删除一个文件。

先调用「上传文件」,用返回的文件 ID 替换示例文件 ID。

DELETE /anthropic/v1/files/{file_id}● 支持

Anthropic 官方文档 ↗

请求参数

  • file_idstring必填

    path:

返回

200

错误按 Anthropic 格式返回,参见 错误码

响应

HTTP 200

Deleted

application/json

名称类型说明
idstringID of the deleted file.
typestringDeleted object type. For file deletion, this is always `"file_deleted"`.