DELETE /api/v1/cloud/files/{file_id}
Deletes a File and returns a deletion confirmation.
Path parameters
| Parameter | Type | Description |
|---|---|---|
file_id | string | File ID with the file_ prefix |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer $QODER_PAT |
Example request
Example response
HTTP 200 OK"type": "file_deleted" in the response body.
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 401 | authentication_error | Missing or invalid authentication token |
| 404 | not_found_error | File does not exist |
| 409 | conflict_error | File is still referenced by active resources |
Related
Attach and download files
Upload files to give your agent context, and download files it produces.