--- url: "https://platform.claude.com/docs/en/api/files/delete" titulek: "Delete File - Claude API Reference" h1: "Delete File" popis: "Delete File" jazyk: "en" kanonicka: "https://platform.claude.com/docs/en/api/files/delete" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-15 02:25:52" znaku: 947 slov: 118 kodovani: "iso-8859-2" sha256: "cd44a119a5769d534e08f2fa1677f9eed5df9dc3aff13e8281d7420bb28b6f64" --- ### Cookie settings We use cookies to deliver and improve our services, analyze site usage, and if you agree, to customize or personalize your experience and market our services to you. You can read our Cookie Policy [here](https://www.anthropic.com/legal/cookies). # Delete File DELETE /v1/files/{file_id} Delete File ##### Path parameters file_id: string ID of the File. ##### Headers "anthropic-workspace-id": optional string ##### Returns DeletedFile object{ type, id }type: optional "file_deleted"Deleted object type.For file deletion, this is always `"file_deleted"`.defaultfile_deletedid: stringID of the deleted file.  Delete File ``` curl https://api.anthropic.com/v1/files/$FILE_ID \ -X DELETE \ -H 'anthropic-version: 2023-06-01' \ -H "X-Api-Key: $ANTHROPIC_API_KEY" ``` Response 200 ``` { "id": "file_011CNha8iCJcU1wXNR6q4V8w", "type": "file_deleted" } ``` ##### Returns Examples Response 200 ``` { "id": "file_011CNha8iCJcU1wXNR6q4V8w", "type": "file_deleted" } ```