Suppose the mailing list name is [email protected] and to delete complete archives for it, please follow the below given steps. Also, if you want to stop archives completely then you can turn off archiving from mailing list administration area >> option archive
Remove all entries from the file example.com.mbox (Take a backup first
)
To reflect the disk space usage in cPanel and to clean the cache for mailman run below command:
That's it !
Code:
[[email protected] ~]# cd /usr/local/cpanel/3rdparty/mailman/archives/private [[email protected] private]# ls -ld workflow_example.com* workflow_example.com workflow_example.com.mbox
Code:
[[email protected] private]# cd workflow_example.com.mbox
Code:
[[email protected] workflow_example.com.mbox]# ls -l workflow_example.com.mbox -rw-rw-r-- 1 mailman mailman 91739640 Jul 20 11:22 workflow_example.com.mbox

Code:
[[email protected] workflow_example.com.mbox]# cd /usr/local/cpanel/3rdparty/mailman/bin
Code:
[[email protected] bin]# ./arch --wipe workflow_example.com
Code:
[[email protected] bin]# /scripts/update_mailman_cache
Comment