From 5c88e575556ce54f955f76d39d77019a207ca89b Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Fri, 15 Aug 2014 15:06:36 +0100 Subject: [PATCH] Create a room-nuking script as it's useful for emergency debugging --- nuke-room-from-db.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 nuke-room-from-db.sh diff --git a/nuke-room-from-db.sh b/nuke-room-from-db.sh new file mode 100755 index 000000000..58c036c89 --- /dev/null +++ b/nuke-room-from-db.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +## CAUTION: +## This script will remove (hopefully) all trace of the given room ID from +## your homeserver.db + +## Do not run it lightly. + +ROOMID="$1" + +sqlite3 homeserver.db <