Skip to main content
DELETE
/
files
/
{id}
Delete a file
curl --request DELETE \
  --url https://base_url/api/v1/files/{id} \
  --header 'Authorization: Bearer <token>'
{
  "error": {
    "type": "CLIENT_INVALID_REQUEST_BODY",
    "doc_url": "https://sales-tax-docs.commenda.io/",
    "title": "Failed to validate the request body",
    "detail": "<string>",
    "status": 400,
    "instance": "<string>",
    "Errors": [
      {
        "details": "<string>",
        "pointer": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The unique identifier of the file to delete.

Response

File successfully deleted