Skip to navigation

Delete All Records

Empty the index and keep it, with its settings, synonyms and rules. Searches stop returning the records within about a second.

Authentication

AuthorizationBearer

A write key, issued by Captain. Server side only. Sent as Authorization: Bearer <key>.

Path parameters

indexstringRequiredformat: "^[a-z0-9][a-z0-9_-]{0,47}$"
index name

Headers

Idempotency-KeystringOptional<=255 characters

Replays within 24 hours return the stored response (header Idempotent-Replayed: true). The same key on a different request answers 422. A concurrent duplicate answers 409. Failed requests do not keep the key.

Response headers

X-Captain-Applied-Seqinteger

the last update seq search had applied when this request started; the answer reflects at least that much (GET …/updates applied_seq). Not on 401 or 403, nor for an index this server does not have

X-Captain-Index-IncarnationstringOptional

the index’s incarnation, an opaque string: it changes only when the index is deleted and created again (whose seqs start again at 1), or restored from a backup (whose seqs continue from the backup’s). Sent with X-Captain-Applied-Seq

Response

nothing to delete, or nothing served yet
indexstringOptional
job_idstring or nullOptional

the write job (GET /v1/jobs/{job_id}); null when nothing was deleted

seqintegerOptional

searchable state reaches this change when applied_seq >= seq

matchedintegerOptional
deletedintegerOptional
dry_runbooleanOptional
staged_recordsintegerOptional
records the index holds after the delete
accepted_atdoubleOptional