Salesly API
API Reference

Delete a document

**Irreversible.** Unlike contacts and opportunities, documents are not soft-deleted: the record, every contact/opportunity/order link, and the stored file are all removed. To remove a document from one parent while keeping the file, use the unlink/detach endpoints instead.

DELETE
/documents/{id}

Authorization

x-api-key<token>

Your tenant API key

In: header

Path Parameters

id
Required
integer
curl -X DELETE "https://rest.salesly.app/api/v1/developers/documents/0" \
  -H "x-api-key: <token>"

Document deleted

{
  "deleted": true
}