vern-scripts/tilserv/delmuser

8 lines
279 B
Plaintext
Raw Normal View History

2023-01-10 03:38:17 +00:00
#!/usr/bin/env bash
[[ -z "$1" ]] && {
printf "Usage: %s username\n" "$0"
exit 1
}
curl -XPOST -H "Authorization: Bearer $(</root/priv/root-access-token)" -H "Content-Type: application/json" -d '{"erase":true}' "http://localhost:8008/_synapse/admin/v1/deactivate/@$1:vern.cc"