ReferenceDocumentsDocumentid

    Delete document

    Permanently delete a document, its attachments and their stored files. API keys need `documents:delete`. A user must be the document's creator or an admin of…

    DELETE
    /documents/{documentId}

    Permanently delete a document, its attachments and their stored files. API keys need documents:delete. A user must be the document's creator or an admin of its organization. A template draft test document is refused with 409 — it is reset, never deleted.

    Authorization

    bearerAuth
    AuthorizationBearer <token>

    In: header

    Path Parameters

    documentId*string

    Response Body

    application/json

    application/json

    application/json

    application/json

    application/json

    curl -X DELETE "https://example.com/documents/string"
    {  "success": true}