---
title: "Empty the stream keyval zone"
method: DELETE
path: "/stream/keyvals/{streamKeyvalZoneName}"
tags: ["Stream Keyvals", "Method DELETE"]
---

# Empty the stream keyval zone

`DELETE /stream/keyvals/{streamKeyvalZoneName}`

Deletes all key-value pairs from the stream keyval shared memory [zone](https://nginx.org/en/docs/stream/ngx_stream_keyval_module.html#keyval_zone). If <a href="https://nginx.org/en/docs/stream/ngx_stream_zone_sync_module.html#zone_sync">synchronization</a> of keyval zones in a cluster is enabled, empties the keyval zone only on a target cluster node.

## Response `204`

Success

## Other responses

- `404` — Keyval not found (*KeyvalNotFound*), unknown version (*UnknownVersion*)
- `405` — Method disabled (*MethodDisabled*)

---

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