Esc
ZeroIndex
GuidesAPI referenceSDKsChangelogOverviewBuy ZeroIndex

Delete an index

View as MarkdownThe page as plain text

Delete an index with all of its documents and settings.

DELETE/v1/indexes/{uid}

Requires an admin key.

Path parameters

uidstringrequired

The name of the index to delete.

Errors

index_not_found404

No index has this uid.

Request

curl -X DELETE https://api.zeroindex.test/v1/indexes/products_old \
  -H "Authorization: Bearer $ZEROINDEX_KEY"
const task = await client.deleteIndex("products_old");
task = client.delete_index("products_old")

Response

202
{
  "taskUid": 8815,
  "indexUid": "products_old",
  "status": "enqueued",
  "type": "indexDeletion",
  "enqueuedAt": "2026-10-12T14:20:05Z"
}