10 lines
285 B
Bash
Executable File
10 lines
285 B
Bash
Executable File
#!/usr/bin/env -S bash -e
|
|
|
|
[[ -z "$1" ]] && {
|
|
printf "Usage: %s username\n" "$0"
|
|
exit 1
|
|
}
|
|
curl -s -X DELETE -H 'Content-Type: application/json' -H 'Authorization: Token '"$(</root/priv/modoboapitoken)"\
|
|
-d '{ id: "'"${1}"'" }'\
|
|
'https://mail.vern.cc/api/v2/accounts/'"${1}"
|