---
title: "Delete shard key"
method: POST
path: "/collections/{collection_name}/shards/delete"
tags: ["Distributed"]
---

# Delete shard key

`POST /collections/{collection_name}/shards/delete`

## Path parameters

- `collection_name` string, required

## Query parameters

- `timeout` integer

## Request body

- DropShardingKey
  - `shard_key` union, required
    - string
    - integer

## Response `200`

successful operation

- object
  - `usage` union
    - Usage — Usage of the hardware resources, spent to process the request
      - `hardware` union
        - HardwareUsage — Usage of the hardware resources, spent to process the request
          - `cpu` integer, required
          - `payload_io_read` integer, required
          - `payload_io_write` integer, required
          - `payload_index_io_read` integer, required
          - `payload_index_io_write` integer, required
          - `vector_io_read` integer, required
          - `vector_io_write` integer, required
        - unknown
      - `inference` union
        - InferenceUsage
          - `models` object, required
        - unknown
    - unknown
  - `time` number, float — Time spent to process this request
  - `status` string
  - `result` boolean

## Other responses

- `default` — error
- `4XX` — error

## Changes

- **2026-05-20** `945e62a0043c` — 1 warning
  - for the `query` request parameter `timeout`, the min was set to `1.00`
- **2025-11-17** `d09f337ca2f3` — 2 info
  - added `#/components/schemas/Usage` to the `usage` response property `anyOf` list for the response status `200`
  - removed `#/components/schemas/HardwareUsage` from the `usage` response property `anyOf` list for the response status `200`
- **2025-04-15** `5d330acca4cd` — 2 breaking, 6 info
  - removed the required property `usage/anyOf[#/components/schemas/HardwareUsage]/io_read` from the response with the `200` status
  - removed the required property `usage/anyOf[#/components/schemas/HardwareUsage]/io_write` from the response with the `200` status
  - added the required property `usage/anyOf[#/components/schemas/HardwareUsage]/payload_index_io_read` to the response with the `200` status
  - added the required property `usage/anyOf[#/components/schemas/HardwareUsage]/payload_index_io_write` to the response with the `200` status
  - …4 more
- **2025-01-17** `a7900f38a79d` — 4 info
  - api tag `Distributed` added
  - api tag `cluster` removed
  - api tag `collections` removed
  - added the optional property `usage` to the response with the `200` status
- **2024-08-13** `d530ad1be7de` — 1 breaking, 1 info
  - removed `subschema #1, subschema #2` from the `shard_key` request property `anyOf` list
  - added `subschema #1, subschema #2` to the `shard_key` request property `anyOf` list

[Change history](https://skmtc.dev/qdrant/apis/qdrant-api/changes/collections/:collection_name/shards/delete/post.md)

---

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