Files
Delete a file
Delete a file and immediately prevent new reads.
Upload a file first, then replace the example file ID with its returned ID.
DELETE
/file/v1/files/{file_id}● SupportedRequest parameters
file_idstring必填path: ID of a tenant-owned live file, as returned by upload or list; starts with file_dp_.
Returns
200 file
Errors follow the OpenAI format — see error codes
Response
HTTP 200
OK
application/json
| Name | Type | Description |
|---|---|---|
| id | string | File identifier: file_dp_ followed by a 26-character uppercase Crockford ULID. Use the ID returned by upload or list. |
| object | string | Object type; always `file`. |
| deleted | boolean | Always true; the file can no longer be read, though downloads already authorized may finish. |