UnmarkdownDocs

Delete Document

Permanently delete a document from your account. If published, the page is automatically taken offline.

Permanently removes the specified document and all associated data. If the document is currently published, deleting it also takes the published page offline.

Caution
This action is irreversible. Once deleted, the document and its content cannot be recovered.
DELETE/v1/documents/:id

Permanently delete a document. Published pages are automatically taken offline.

Request

bash
curl -X DELETE https://api.unmarkdown.com/v1/documents/d290f1ee-6c54-4b01-90e6-d701748f0851 \
  -H "Authorization: Bearer um_your_api_key"

Response

json
{
  "success": true
}

Error Response

json
{
  "error": {
    "code": "not_found",
    "message": "Document not found",
    "status": 404
  }
}

Status Codes

StatusDescription
200Document deleted successfully
401Missing or invalid API key
404Document not found
429Rate limit or quota exceeded
500Internal server error