---
title: "Remove key-value pairs."
method: DELETE
path: "/_fabric/{fabric}/_api/kv/{collection}/values"
tags: ["Key Value"]
---

# Remove key-value pairs.

`DELETE /_fabric/{fabric}/_api/kv/{collection}/values`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_fabric/:fabric/_api/kv/:collection/values/delete.ts> (a function with typed inputs; its response is checked against the schema)

Remove key-value pairs. Requires a list of keys.

**Note:** Max limit is 1000 keys per request.

## Path parameters

- `fabric` string, string, required
- `collection` string, string, required

## Request body

- string[]

## Response `202`

Successfully removed key-value pairs.

- object[]
  - `_id` string: ID of the collection.
  - `_key` string: _key details of collection.
  - `_rev` string: _rev details of collection.

## Other responses

- `404`: Failed to find specified fabric, collection or key-value pair.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
