DELETE
/api/v1/documents/{slug}Delete a document
Moves a document to the trash for 30 days. Its link stops working at once; Restore from the trash brings it back as it was. Send a token as the owner, or the document's edit secret in X-Edit-Secret.
A page with sub-pages needs children: delete sends them to the trash with it, lift moves them up a level.
Guide: Trash
Code samples and Try itPath parameters
#slugstringRequiredThe document's address: the part after
markdrop.in/.
Query parameters
#children"delete" | "lift"For a page with sub-pages:
delete(they go to the trash too) orlift(they move up a level).
Headers
#X-Edit-SecretstringThe document's edit secret (
sk_…), for a document published without an account. See Edit key.
Responses
#204No content.409The page has sub-pages andchildrenis missing:codeishas_children, with theircount.422The request didn't validate.detaillists each problem, with where it is (loc) and why (msg).429Too many requests from your IP address. Wait the seconds inRetry-After.