Permanently remove a file from your organization storage
| Parameter | Type | Required | Description |
|---|---|---|---|
file_id | string | Yes | The ID of the file to delete |
| Field | Type | Description |
|---|---|---|
id | string | ID of the deleted file |
object | string | Always “file” |
deleted | boolean | true if deletion was successful |
| Status Code | Error Type | Description |
|---|---|---|
404 | file_not_found | File with the specified ID does not exist |
401 | authentication_error | Invalid or missing API key |
403 | permission_denied | File belongs to a different organization |
409 | file_in_use | File is currently being used and cannot be deleted |