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}● SupportedRequest parameters
file_idstring必填path:
Returns
200
Errors follow the Anthropic format — see error codes
Response
HTTP 200
Deleted
application/json
| Name | Type | Description |
|---|---|---|
| id | string | ID of the deleted file. |
| type | string | Deleted object type. For file deletion, this is always `"file_deleted"`. |