Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Zimbra remove all accounts TODO: find a better way to automate this
# as zimbra user
$ zmprov -l gaa |grep -v admin-domain.com >/tmp/accounts.zmp
$ zmprov -l gad |grep -v admin-domain.com >/tmp/domains.zmp
# edit /tmp/accounts.zmp adding at the beginning of each line deleteAccount
# edit /tmp/domains.zmp adding at the beginning of each line deleteDomain
# than as zimbra user run
$ zmprov < /tmp/accounts.zmp
$ zmprov < /tmp/domains.zmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment