forked from vern/scripts
8 lines
279 B
Bash
Executable File
8 lines
279 B
Bash
Executable File
#!/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"
|