Deletes a File that is not referenced by a Template.
Path
DELETE /api/v1/forward/files/{file_id}
Request headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <PAT or SAT> |
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file_id | string | Yes | File ID to delete. |
Example request
Example response
Response fields
| Field | Type | Description |
|---|---|---|
id | string | ID of the deleted resource. |
type | string | Deletion result type. |
deleted | boolean | Whether the resource was deleted. |
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | The request body, path parameters, or query parameters are invalid. |
| 401 | authentication_error | The authentication token is missing or invalid. |
| 403 | permission_error | The caller cannot access this File. |
| 404 | not_found_error | The File does not exist, is not registered, or is not visible. |
| 409 | conflict_error | The idempotency key conflicts, create recovery requires manual intervention, or the resource is still referenced during deletion. |
| 429 | rate_limit_error | Upload capacity is insufficient. |
| 500/502/503 | api_error | Forward or a dependent service failed. |