Using
Deletes a document and its index entries. Supports conditional delete via `If-Match: "<etag>"`; a failed precondition answers 412 with the current `ETag`.
applies to v0.5.1const url = 'https://example.com/store-api/json/example/documents/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://example.com/store-api/json/example/documents/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”JSON domain
Document key
Header Parameters
Section titled “Header Parameters”Opaque ETag from a prior read: delete only if it is still the document’s current version, else 412
Only * is supported: 412 if the document exists. Evaluated after If-Match
Responses
Section titled “Responses”Document deleted
Invalid key, or invalid If-Match or If-None-Match header
Document or domain not found
Domain is being deleted
If-Match or If-None-Match does not hold (version mismatch, missing document, or document exists); nothing was deleted
Headers
Section titled “Headers”ETag of the document’s current version; absent when the document does not exist
The domain requires conditional writes and neither If-Match nor If-None-Match is set
Headers
Section titled “Headers”No-store
JSON engine disabled
Insufficient Storage — disk space or memory runs short; the write was not applied. Reads go on; retry after the seconds in Retry-After.