forked from vern/scripts
10 lines
261 B
Plaintext
10 lines
261 B
Plaintext
|
#!/usr/bin/env -S bash -e
|
||
|
|
||
|
[[ -z "$2" ]] && {
|
||
|
printf "Usage: %s username password\n" "$0"
|
||
|
exit 1
|
||
|
}
|
||
|
|
||
|
curl -s -X DELETE -H 'Content-Type: application/json' -H 'Authorization: Bearer '"$(peertube-authcode-gen)" \
|
||
|
'https://pt.vern.cc/api/v1/users/'"${1}"
|