---
title: "DELETE /v1/projects/{projectId}/indexes/{indexId}"
method: DELETE
path: "/v1/projects/{projectId}/indexes/{indexId}"
tags: ["projects"]
---

# DELETE /v1/projects/{projectId}/indexes/{indexId}

`DELETE /v1/projects/{projectId}/indexes/{indexId}`

Deletes an existing index. An index can only be deleted if it is in a `READY` or `ERROR` state. On successful execution of the request, the index will be in a `DELETING` state. And on completion of the returned google.longrunning.Operation, the index will be removed. During index deletion, the process could result in an error, in which case the index will move to the `ERROR` state. The process can be recovered by fixing the data that caused the error, followed by calling delete again.

## Path parameters

- `projectId` string, required
- `indexId` string, required

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/datastore.md) · [All operations](https://skmtc.dev/google/apis/datastore/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/datastore/revisions/aef4907227b2/schema)
