OrgDocumentsDocumentid

Remove a file

Deletes the file and its record. A message that already went out with it keeps the attachment on its timeline — the name and size stay — but the file is no longer downloadable. The copy in the recipient's inbox is theirs and cannot be reached.

DELETE
/org/documents/{documentId}

Deletes the file and its record. A message that already went out with it keeps the attachment on its timeline — the name and size stay — but the file is no longer downloadable. The copy in the recipient's inbox is theirs and cannot be reached.

AuthorizationBearer <token>

API key (sk_live_... prefix). Generate keys in the UI under Settings > API Keys, then send it as Authorization: Bearer sk_live_...

In: header

Path Parameters

documentId*string
Formatuuid

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "https://loading/api/v1/org/documents/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "data": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  }
}
{
  "error": "string",
  "message": "string",
  "statusCode": -9007199254740991
}
{
  "error": "module_required",
  "module": "string",
  "message": "string",
  "contact": "string"
}
{
  "error": "string",
  "message": "string",
  "statusCode": -9007199254740991
}