Hanzo
OpenapiIndex

Deletes one document by its primary key.

Deletes one document by its primary key. Removes the document from the caller's own org and answers the dialect's EnqueuedTask.

DELETE /v1/index/indexes/{uid}/documents/{id}

Addresshttps://api.hanzo.ai/v1/index/indexes/{uid}/documents/{id}
MethodDELETE
Operationdelete_index_indexes_by_uid_documents_by_id
AuthAuthorization: Bearer $HANZO_API_KEY

Deletes one document by its primary key.

Removes the document from the caller's own org and answers the dialect's EnqueuedTask. Deleting a key that is not there succeeds, so a client reconciling its own corpus can delete without checking first.

The 202 and its enqueued task are DIALECT COMPATIBILITY, not a promise of later work: the document is already gone when this answers.

Request

2 fields.

FieldInTypeRequiredDescription
uidpathstringyes
idpathstringyes

Response

StatusBodyMeaning
202indexEnqueuedaccepted

202 body — 5 fields.

FieldInTypeAlwaysDescription
enqueuedAtbodystringEnqueuedAt is when the task was recorded, RFC 3339 — which is also when it completed.
indexUidbodystringIndexUID names the index the write landed in.
statusbodystringStatus is always enqueued, for dialect compatibility.
taskUidbodyintegerTaskUID identifies the task for a client that polls it.
typebodystringType is the dialect's name for the kind of write: indexCreation, indexDeletion, settingsUpdate, documentAdditionOrUpdate, documentDeletion.

Failure carries the platform error shape — see Errors.

Examples

hanzo index indexes documents rm <uid> <id>

Index API · All Hanzo APIs · Interactive reference

How is this guide?

On this page