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/:idPermanently 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
| Status | Description |
|---|---|
| 200 | Document deleted successfully |
| 401 | Missing or invalid API key |
| 404 | Document not found |
| 429 | Rate limit or quota exceeded |
| 500 | Internal server error |