Skip to main content
DELETE
/
api
/
documents
/
{document_id}
Delete a document
curl --request DELETE \
  --url https://api.example.com/api/documents/{document_id} \
  --header 'Authorization: Bearer <token>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

document_id
string<uuid>
required

Query Parameters

hard
boolean
default:false

Permanently delete

Response

Successful Response