OpenAI
Delete file
Delete a file.
Upload a file first, then replace the example file ID with its returned ID.
DELETE
/openai/v1/files/{file_id}● SupportedRequest parameters
file_idstring必填path: The ID of the file to use for this request.
Returns
200 file
Errors follow the OpenAI format — see error codes
Response
HTTP 200
OK
application/json
| Name | Type | Description |
|---|---|---|
| id | string | |
| object | string | |
| deleted | boolean |