0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-07-04 12:08:40 +02:00
dendrite/internal/sqlutil
Neil 738686ae68
Add /_dendrite/admin/purgeRoom/{roomID} (#2662)
This adds a new admin endpoint `/_dendrite/admin/purgeRoom/{roomID}`. It
completely erases all database entries for a given room ID.

The roomserver will start by clearing all data for that room and then
will generate an output event to notify downstream components (i.e. the
sync API and federation API) to do the same.

It does not currently clear media and it is currently not implemented
for SQLite since it relies on SQL array operations right now.

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
Co-authored-by: Till Faelligen <2353100+S7evinK@users.noreply.github.com>
2023-01-19 21:02:32 +01:00
..
migrate.go Tweak InsertMigration to avoid logging (#2720) 2022-09-22 15:53:15 +02:00
migrate_test.go Fix moderncsqlite errors and rebase onto main (#2832) 2022-11-02 13:20:10 +00:00
sql.go Add /_dendrite/admin/purgeRoom/{roomID} (#2662) 2023-01-19 21:02:32 +01:00
sqlite_cgo.go Fix moderncsqlite errors and rebase onto main (#2832) 2022-11-02 13:20:10 +00:00
sqlite_native.go Fix moderncsqlite errors and rebase onto main (#2832) 2022-11-02 13:20:10 +00:00
sqlutil.go Fix moderncsqlite errors and rebase onto main (#2832) 2022-11-02 13:20:10 +00:00
sqlutil_test.go Add /_dendrite/admin/purgeRoom/{roomID} (#2662) 2023-01-19 21:02:32 +01:00
trace.go Upgrade various dependencies (#2496) 2022-05-26 12:34:43 +01:00
trace_driver.go Fix moderncsqlite errors and rebase onto main (#2832) 2022-11-02 13:20:10 +00:00
trace_driver_wasm.go Run gofmt on dendrite - apply go 1.17 preferred build tags (#2021) 2021-11-02 16:48:48 +00:00
unique_constraint.go Fix moderncsqlite errors and rebase onto main (#2832) 2022-11-02 13:20:10 +00:00
unique_constraint_cgo.go Fix moderncsqlite errors and rebase onto main (#2832) 2022-11-02 13:20:10 +00:00
unique_constraint_wasm.go Fix moderncsqlite errors and rebase onto main (#2832) 2022-11-02 13:20:10 +00:00
uri.go Top-level setup package (#1605) 2020-12-02 17:41:00 +00:00
writer.go Component-wide TransactionWriters (#1290) 2020-08-21 10:42:08 +01:00
writer_dummy.go Component-wide TransactionWriters (#1290) 2020-08-21 10:42:08 +01:00
writer_exclusive.go Update dependencies (#2729) 2022-09-20 15:01:19 +01:00