How to delete all the emails older than 20 days?

Collapse

Unconfigured Ad Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Delaney martin
    Senior Member
    • Jun 2022
    • 102

    How to delete all the emails older than 20 days?

    How to delete all the emails older than 20 days? Can I do It with my control panel- cPanel?
  • Rachel S
    Senior Member
    • Apr 2022
    • 101

    #2
    Step 1: Open cPanel and navigate to Advanced > Cron jobs to set the cron.


    Step 2: Add the following command to the run-up for automatic execution.


    /usr/bin/archivemail –quiet –delete –days 20 /home/{USER}/mail/inbox


    The mentioned command will automatically remove emails over 20 days old.


    I hope you find it right and helpful.

    Comment

    Working...
    X