> **Source:** https://knowledge.leegality.com/document-execution/api/delete-document > **Site:** Leegality Knowledge Base — https://knowledge.leegality.com > **About:** Leegality is a document execution platform covering eSigning, stamps, NeSL, workflows, and REST API integration. > **Navigation:** Every article on this site has a plain-text version at `.txt` (this format). To get an index of all articles with their `.txt` links, read: https://knowledge.leegality.com/llms.txt > **AI Guide:** For instructions on how to navigate this knowledge base as an AI agent, read: https://knowledge.leegality.com/ai-readable.txt --- # DELETE /v3.0/sign/request — Delete document Permanently deletes a document and all associated data. **Authentication:** `X-Auth-Token` header required on every request. ## Request URL ``` DELETE https://app1.leegality.com/api/v3.0/sign/request?documentId={documentId} ``` **Environments:** - Production: `https://app1.leegality.com/api/v3.0/sign/request` - Sandbox: `https://sandbox.leegality.com/api/v3.0/sign/request` --- ## Parameters | Name | In | Required | Type | Description | Example | |------|----|----------|------|-------------|---------| | `documentId` | query | Yes | string | Unique identifier of the document to delete. **Format:** Alphanumeric string. Get from the **Create eSigning request** API response or from the dashboard. | — | --- ## Responses ### 200 — Delete response. Check `status` field: `1` = success, `0` = failure. Response wrapper for the Delete Document API. On success (`status: 1`), `data` is an empty object. On failure (`status: 0`), `messages` contains the error details. | Field | Type | Required | Description | Example | |-------|------|----------|-------------|---------| | `status` | integer | No | API response status. `1` = success (document deleted), `0` = failure. Allowed: `0`, `1`. | `1` | | `messages` | array\ | No | Array of response messages. **Success codes:** - `document.delete.success` — Document deleted successfully **Error codes:** - `no.document.found` — Document ID does not exist - `document.id.required` — documentId query parameter is missing or empty See **Message** below. | — | | `data` | object | No | Always an empty object `{}` for this endpoint. | — | #### Message Message object containing a machine-readable code and a human-readable description. Used for success confirmations, errors, and warnings. | Field | Type | Required | Description | Example | |-------|------|----------|-------------|---------| | `code` | string | No | Response message code. | `simpleWorkFlow.success` | | `message` | string | No | Human-readable success or error message. | `Invitations sent successfully.` | ### Sample Response (200) ```json { "status": 1, "messages": [ { "code": "simpleWorkFlow.success", "message": "Invitations sent successfully." } ], "data": {} } ```