Hanzo
OpenapiIndex

Deletes an index and everything in it.

Deletes an index and everything in it. Drops the index and every document in it from the caller's own org, and answers the dialect's EnqueuedTask.

DELETE /v1/index/indexes/{uid}

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

Deletes an index and everything in it.

Drops the index and every document in it from the caller's own org, and answers the dialect's EnqueuedTask. This is the only way to retire an index; without it a mistaken uid is permanent. Deleting an index that is not there succeeds, so a cleanup pass is safe to re-run.

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

Request

1 field.

FieldInTypeRequiredDescription
uidpathstringyes

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 rm <uid>

Index API · All Hanzo APIs · Interactive reference

How is this guide?

On this page