Skip to content
v0.5.1GitHub

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.1
DELETE
/store-api/json/{domain}/documents/{key}
curl --request DELETE \
--url https://example.com/store-api/json/example/documents/example \
--header 'Authorization: Bearer <token>'
domain
required
string

JSON domain

key
required
string

Document key

If-Match
string | null

Opaque ETag from a prior read: delete only if it is still the document’s current version, else 412

If-None-Match
string | null

Only * is supported: 412 if the document exists. Evaluated after If-Match

Document deleted

Invalid key, or invalid If-Match or If-None-Match header

Media typetext/plain
string

Document or domain not found

Media typetext/plain
string

Domain is being deleted

Media typetext/plain
string

If-Match or If-None-Match does not hold (version mismatch, missing document, or document exists); nothing was deleted

Media typetext/plain
string
ETag
string

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

Media typetext/plain
string
Cache-Control
string

No-store

JSON engine disabled

Media typetext/plain
string

Insufficient Storage — disk space or memory runs short; the write was not applied. Reads go on; retry after the seconds in Retry-After.

Media typetext/plain
string
Retry-After
integer