Last active
August 1, 2019 13:23
-
-
Save sebastian13/c53e5dc0c5a573e2b371636ad792d417 to your computer and use it in GitHub Desktop.
Zimbra: Delete all Accounts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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