Open atuctuc opened 2 years ago
@atuctuc To delete a room without providing a replacement, omit "new_room_user_id"
from the request body. (see also https://matrix-org.github.io/synapse/latest/admin_api/rooms.html: "optional" fields should be omitted rather than empty strings).
You probably want to use
curl -XDELETE "https://my.spdns.org/_synapse/admin/v2/rooms/$room_id" \
-H "Authorization: Bearer $TOKEN" \
-d'{"message": "This room has been removed", "block": true, "purge": true }'
Synapse would ideally validate that new_room_user_id
is a valid user ID (if provided) and give a reasonable error message if it's invalid.
ah, thanks, ist works now!!
hallo i want to delete rooms on my server with this command. unfortunately i always get this error.
my synapse shows the following in the log file:
During handling of the above exception, another exception occurred:
any idea whats wrong? thanks anan