Anthropic

Delete a file

Delete a file.

Upload a file first, then replace the example file ID with its returned ID.

DELETE /anthropic/v1/files/{file_id}● Supported

Official Anthropic docs ↗

Request parameters

  • file_idstring必填

    path:

Returns

200

Errors follow the Anthropic format — see error codes

Response

HTTP 200

Deleted

application/json

NameTypeDescription
idstringID of the deleted file.
typestringDeleted object type. For file deletion, this is always `"file_deleted"`.