Skip to main content
DELETE /api/v1/cloud/files/{file_id} Deletes a File and returns a deletion confirmation.

Path parameters

ParameterTypeDescription
file_idstringFile ID with the file_ prefix

Headers

HeaderRequiredDescription
AuthorizationYesBearer $QODER_PAT

Example request

curl -X DELETE https://api.qoder.com/api/v1/cloud/files/file_019e3bb8c1387743bf4ef115aae5acb1 \
  -H "Authorization: Bearer $QODER_PAT"

Example response

HTTP 200 OK
{
  "id": "file_019e3bb8c1387743bf4ef115aae5acb1",
  "type": "file_deleted"
}
Successful deletion is signalled by "type": "file_deleted" in the response body.

Errors

HTTPTypeTrigger
401authentication_errorMissing or invalid authentication token
404not_found_errorFile does not exist
409conflict_errorFile is still referenced by active resources
See Errors for the full error envelope.

Attach and download files

Upload files to give your agent context, and download files it produces.