---
title: "Delete an existing key backup."
method: DELETE
path: "/_matrix/client/v3/room_keys/version/{version}"
tags: ["End-to-end encryption"]
---

# Delete an existing key backup.

`DELETE /_matrix/client/v3/room_keys/version/{version}`

## Request

- Base URL: `https://matrix.org`
- URL: `https://matrix.org/_matrix/client/v3/room_keys/version/{version}`
- 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/version/:version/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete an existing key backup. Both the information about the backup,
as well as all key data related to the backup will be deleted.

## Path parameters

- `version` string, required

## Response `200`

The delete succeeded, or the specified backup was previously
deleted.

- object

## Other responses

- `404`: The backup specified does not exist. If the backup was previously deleted, the call should succeed rather than returning an error.
- `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)
