Delete an index
# Delete an index
Delete an index with all of its documents and settings.
`DELETE /v1/indexes/{uid}`
Requires an admin key.
<Callout type="danger" title="This cannot be undone">
The documents are gone once the task succeeds. Export them first if you might need them again.
</Callout>
## Path parameters
<ParamField name="uid" type="string" required>
The name of the index to delete.
</ParamField>
## Errors
<ResponseField name="index_not_found" type="404">
No index has this uid.
</ResponseField>
## Request
```bash
curl -X DELETE https://api.zeroindex.test/v1/indexes/products_old \
-H "Authorization: Bearer $ZEROINDEX_KEY"
```
```js
const task = await client.deleteIndex("products_old");
```
```python
task = client.delete_index("products_old")
```
## Response (202)
```json
{
"taskUid": 8815,
"indexUid": "products_old",
"status": "enqueued",
"type": "indexDeletion",
"enqueuedAt": "2026-10-12T14:20:05Z"
}
```
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"
}