---
title: "Deletes the partitions that match the query"
method: DELETE
path: "/layers/{layerID}"
tags: ["index"]
---

# Deletes the partitions that match the query

`DELETE /layers/{layerID}`

Deletes the partitions that match the query in the index layer. Returns the delete request ID, which you can use to query the status of the delete operation.

## Path parameters

- `layerID` string, required

## Query parameters

- `deleteQuery` string, required

## Response `202`

Accepted - Delete request accepted successfully

- DeleteResponse
  - `deleteId` string, [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}

## Other responses

- `400` — Bad Request - The request is invalid. Verify and retry.
- `401` — Unauthorized - The credentials provided do not authorize the user to perform this operation.
- `403` — Forbidden - The user is not authorized to perform the query on the resource specified.
- `404` — Not Found - The criteria set in the query is not valid.

---

[API](https://skmtc.dev/here/apis/query-api-v1.md) · [All operations](https://skmtc.dev/here/apis/query-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/here/query-api-v1/revisions/30e5d2645407/schema)
