---
title: "Clear KVStore data"
method: POST
path: "/delete/"
tags: ["KVStore", "public"]
---

# Clear KVStore data

`POST /delete/`

Delete all KVStore data _except_ for the specified keys. If a World ID or Launch Context ID header
are supplied, the respective Project ID header _must_ also be supplied.

Both the client and server data will be cleared at the given level only. i.e. clearing the Organization
store will not have an impact on any child Projects, Launch Contexts, nor Worlds.

## Headers

- `x-m2-organization-id` string, required
- `x-m2-project-id` string
- `x-m2-launch-context-id` string
- `x-m2-world-id` string

## Request body

- PostKvstoreDeleteRequest — The request body for a KV Store delete request.
  - `keysToIgnore` string[] — An array of keys to ignore when clearing the store
  - `store` union, required — Client or Server KV Store
    - 'kvstoreClient'
    - 'kvstoreServer'

## Response `204`

Indicates the KV Store was successfully cleared.

- PostKvstoreDeleteResponse — Indicates the KV Store was successfully cleared.

## Other responses

- `4XX` — The error object returned by the API when an error occurs

---

[API](https://skmtc.net/otherside/apis/key-value-store.md) · [All operations](https://skmtc.net/otherside/apis/key-value-store/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/otherside/key-value-store/revisions/fc05ba366987/schema)
