Skip to content

Commit f9af712

Browse files
authored
Merge pull request #2526 from uhoreg/e2e_delete_backup
MSC2526: Add ability to delete key backups
2 parents b8f13ac + bac9afa commit f9af712

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# MSC2526: Add ability to delete key backups
2+
3+
[MSC1219](https://github.com/matrix-org/matrix-doc/issues/1219) defined a
4+
mechanism for key backups. However, it inadvertently omitted the endpoint to
5+
delete an entire key backup. This proposal adds the endpoint.
6+
7+
## Proposal
8+
9+
An endpoint is added, `DELETE /room_keys/version/{version}`, that deletes a
10+
backup version. Both the information about the key backup, as well as all keys
11+
associated with the backup should be deleted. If the specified version was
12+
previously deleted, the endpoint succeeds, returning an HTTP code of 200. If
13+
the specified version never existed, the endpoint returns an HTTP code of 404
14+
with a Matrix `errcode` of `M_NOT_FOUND`.

0 commit comments

Comments
 (0)