latestOpenAPI 3.1.02026-08-197104501.1 MB

8fbaab4fc7c5

files

Delete File

Deletes a specified file. that can be used across - Assistants API, Batch API This is the equivalent of DELETE https://api.openai.com/v1/files/{file_id}

Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/delete

Example Curl

curl http://localhost:4000/v1/files/file-abc123     -X DELETE     -H "Authorization: Bearer $OPENAI_API_KEY"

delete/files/{file_id}

Path parameters

file_idstring required

Query parameters

providerstring nullable

Response

Successful Response

{"stackTrail":"paths:/files/{file_id}:delete:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}