Commit 423116d8 authored by Milan's avatar Milan
Browse files


parent c890f597
set -e
# requires package jq
# this prepares a list of rooms without local members to be deleted. the result should get reviewed.
# where is this directory?
workpath = "/path/to/synapse-administration/scripts"
# directly connecting to localhost to avoid timeouts
curl -X GET "http://localhost:8008/_synapse/admin/v1/rooms?limit=20000" \
-H "Authorization: Bearer $token"|jq -r '.rooms[] | select(.joined_local_members == 0) | .room_id'\
> "${workpath}/nukerooms.txt"
# after review of nukerooms.txt, launch
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment