Skip to content

Instantly share code, notes, and snippets.

@filippo
Last active May 27, 2021 13:40
Show Gist options
  • Save filippo/7573086 to your computer and use it in GitHub Desktop.
Save filippo/7573086 to your computer and use it in GitHub Desktop.
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