Skip to main content
Files

Delete a File

Deletes a File that is not referenced by a Template.

Path

DELETE /api/v1/forward/files/{file_id}

Request headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT or SAT>
Checks Template references before deletion. If unreferenced, the File is deleted and no longer appears in default listings.

Path parameters

ParameterTypeRequiredDescription
file_idstringYesFile ID to delete.

Example request

curl -X DELETE "https://api.qoder.com/api/v1/forward/files/file_xxx" \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN"

Example response

{
  "id": "file_xxx",
  "type": "file_deleted",
  "deleted": true
}

Response fields

FieldTypeDescription
idstringID of the deleted resource.
typestringDeletion result type.
deletedbooleanWhether the resource was deleted.

Errors

HTTPTypeTrigger
400invalid_request_errorThe request body, path parameters, or query parameters are invalid.
401authentication_errorThe authentication token is missing or invalid.
403permission_errorThe caller cannot access this File.
404not_found_errorThe File does not exist, is not registered, or is not visible.
409conflict_errorThe idempotency key conflicts, create recovery requires manual intervention, or the resource is still referenced during deletion.
429rate_limit_errorUpload capacity is insufficient.
500/502/503api_errorForward or a dependent service failed.