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

# Remove key-value pair

`DELETE /_fabric/{fabric}/_api/kv/{collection}/value/{key}`

## 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/value/:key/delete.ts> (a function with typed inputs; its response is checked against the schema)

Remove key-value pair.

## Path parameters

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

## Response `202`

Successfully removed key-value pair.

- ExamplesIdKeyRev
  - `_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 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)
