diff --git a/scripts/delete-account.sh b/scripts/delete-account.sh new file mode 100755 index 0000000000000000000000000000000000000000..362232b3ead3a6389ced3e45a0ec9f54f31a0b08 --- /dev/null +++ b/scripts/delete-account.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -e + +source /mnt/repo-base/scripts/base.sh + +ACCOUNT=$1 + +docker-compose exec -T -u www-data nextcloud php occ user:delete "$ACCOUNT" + +docker-compose exec -T postfixadmin /postfixadmin/scripts/postfixadmin-cli mailbox delete "$ACCOUNT" + +# TODO: delete onlyoffice account???