#!/bin/bash ## CAUTION: ## This script will remove (hopefully) all trace of the given room ID from ## your homeserver.db ## Do not run it lightly. set -e if [ "$1" == "-h" ] || [ "$1" == "" ]; then echo "Call with ROOM_ID as first option and then pipe it into the database. So for instance you might run" echo " nuke-room-from-db.sh | sqlite3 homeserver.db" echo "or" echo " nuke-room-from-db.sh | psql --dbname=synapse" exit fi ROOMID="$1" cat <