How to delete mailman archives on cPanel using command?

If you have created a mailman mailing list called [email protected] and want to clear it, then you will need to remove  Please refer to the following steps to remove mailman archives on cPanel using command. 

  1. Run the below command. 

    cd /usr/local/cpanel/3rdparty/mailman/archives/private
  2. There will be many directories at this location. Each directory contains with mailman email list with the example like [email protected] inside the directory listing_example.com.

    
    drwxr-x---  2 mailman nobody  4.0K Jan 10  2019 mailman/
    drwxrwx--- 2 mailman mailman 4.0K Jan 10 2019 mailman.mbox/
    drwxr-x--- 2 mailman nobody 4.0K Oct 25 2019 mail_mailing.com/
    drwxrwx--- 2 mailman mailman 4.0K Oct 25 2019 mail_mailing.com.mbox/
    drwxr-x--- 2 mailman nobody 4.0K Oct 25 2019 listing_example.com/
    drwxrwx--- 2 mailman mailman 4.0K Oct 25 2019 listing_example.mbox/
  3. Go to the directory listing_example.com

    cd listing_example.com
  4. List all the content with the below command.

    ls -alh
  5. Run the below command if you want to remove all the archive of 2019.

    rm 2019* -rf
  6. Database and attachments also consist the older data. You can also remove it using the rm-rf command.

  7. Run the below command to clear the mailman cache.

    /scripts/update_mailman_cache
    

Related Articles

How to run ClamAV and Maldet together on cPanel server?

You may be familiar with ClamAV and Maldet scanner (aka Linux Malware Detect). They're widely...

HOW TO INSTALL NEXTCLOUD ON UBUNTU?

Nextcloud is an open-source and secure PHP-based content collaboration platform. It is used for...

How to enable Analytics Feature from cPanel ?

cPanel has launched the Interface Analytics plugin in WHM version 78. cPanel Analytics plugin...

How to Install Java on Ubuntu 18.04 ?

Java is a programming language developed by Sun Microsystems. There are lots of applications and...

How to transfer cPanel accounts from Shared Hosting to VPS/Dedicated Server manually?

cPanel facilitates you to restore full cPanel account along with websites, email accounts, MySQL...

  • 0 Users Found This Useful

Was this answer helpful?