Skip to content

Instantly share code, notes, and snippets.

@sebastian13
Last active August 1, 2019 13:23
Show Gist options
  • Save sebastian13/c53e5dc0c5a573e2b371636ad792d417 to your computer and use it in GitHub Desktop.
Save sebastian13/c53e5dc0c5a573e2b371636ad792d417 to your computer and use it in GitHub Desktop.
Zimbra: Delete all Accounts
su zimbra
zmprov -l gaa | grep -v ^admin@.* > /tmp/all-accounts.txt
for i in `cat /tmp/all-accounts.txt`; do zmprov deleteAccount $i && echo $i $'\u2713'; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment