---
title: "Delete the keys from the backup."
method: DELETE
path: "/_matrix/client/v3/room_keys/keys"
tags: ["End-to-end encryption"]
---

# Delete the keys from the backup.

`DELETE /_matrix/client/v3/room_keys/keys`

## Request

- Base URL: `https://matrix.org`
- URL: `https://matrix.org/_matrix/client/v3/room_keys/keys`
- Auth: one of:
  - API key in query parameter `access_token`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/matrix/apis/matrix-client-server-api/docs/_matrix/client/v3/room_keys/keys/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete the keys from the backup.

## Query parameters

- `version` string, required

## Response `200`

The update succeeded

- object
  - `count` integer, required: The number of keys stored in the backup
  - `etag` string, required: The new etag value representing stored keys in the backup. See [`GET /room_keys/version/{version}`](client-server-api/#get_matrixclientv3room_keysversionversion) for more details.

## Other responses

- `404`: The backup was not found.
- `429`: This request was rate-limited.

---

[API](https://skmtc.dev/matrix/apis/matrix-client-server-api.md) - [All operations](https://skmtc.dev/matrix/apis/matrix-client-server-api/llms.txt) - [OpenAPI document](https://skmtc.dev/matrix/apis/matrix-client-server-api/revisions/c7fe4072c681?raw)
