Repository Public
1> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.23## Delete file45**delete** `/files/{file_id}`67Delete a file and remove it from all vector stores.89### Path Parameters1011- `file_id: string`1213### Returns1415- `FileDeleted object { id, deleted, object }`1617 - `id: string`1819 - `deleted: boolean`2021 - `object: "file"`2223 - `"file"`2425### Example2627```http28curl https://api.openai.com/v1/files/$FILE_ID \29 -X DELETE \30 -H "Authorization: Bearer $OPENAI_API_KEY"31```3233#### Response3435```json36{37 "id": "id",38 "deleted": true,39 "object": "file"40}41```4243### Example4445```http46curl https://api.openai.com/v1/files/file-abc123 \47 -X DELETE \48 -H "Authorization: Bearer $OPENAI_API_KEY"49```5051#### Response5253```json54{55 "id": "file-abc123",56 "object": "file",57 "deleted": true58}59```60