How to delete/clean of Zimbra account from CLI

Delete all mail from Inbox in Zimbra CLI

You can delete/clean mail's of user account when Hard drive (/opt) space get short . You may also take mailbox backup of these account before deleting external drive.

Login from Zimbra user

# su - zimbra
$ zmmailbox -z -m user@example.com emptyFolder /Inbox

For Junk Mail
$ zmmailbox -z -m user@example.com emptyFolder /Junk

You can also delete admin account mail's.

$ zmmailbox -z -m admin@example.com emptyFolder /Inbox

Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

3 comments:

  1. Excelente artículo! Muchas gracias por la información!

    Tengo una consulta:

    Al ejecutar el comando zmmailbox -z -m cuenta@dominio emptyFolder se borran correctamente los mensajes, pero no se libera espacio en el disco duro.

    ¿Porque sucede esto?¿Donde se almacenan los mensajes luego de ejecutar el comando?

    De antemano, muchas gracias por la respuesta!

    ReplyDelete
  2. Dear, top first line i understood only. Thanks for visiting on my website. If you need any help related to this topic. Kindly write below in English, so that i can understand easily and will help you.

    ReplyDelete
  3. I gathered as much knowledge regarding to the Linux, web sever and database server from your site.Keep on updating with more interesting topic.
    Moreover to recover the lost file from Linux Click on:
    android data recovery review
    launch android data recovery
    backup and restore android apps and data
    android backup app data
    recover lost files
    diskdigger pro file recovery

    ReplyDelete