Knowledgebase

Automatically empty the Trash folder (recycle bin)

To automatically delete messages stored in the .Trash directory (messages that you marked for deletion from your WebMail that are stored in this folder specifically, similar to an Operating System recycle bin); located within each of your email addresses.

You must implement a scheduled task (cron) as follows:

1) Access the scheduled tasks tool in your cPanel control panel

2) Add the following line to run once a day during the early morning (e.g. at 4 AM).

CODE EXAMPLE:

/usr/bin/find $HOME/mail/*/*/.Trash/cur/* $HOME/mail/*/*/.Trash/new/* -type f -mtime +$VALUE -exec rm -f { } ''

NOTE: The previous line will delete messages older than a "VALUE" - example label, corresponding to an integer numerical value - that you specify, for example, 5, the number of days is defined by the value assigned to the -mtime parameter

IMPLEMENTATION EXAMPLE:

/usr/bin/find $HOME/mail/*/*/.Trash/cur/* $HOME/mail/*/*/.Trash/new/* -type f -mtime +5 -exec rm -f {} ''

3) To Finish press "Save Crontab"

  • 14 Users Found This Useful
Was this answer helpful?

Related Articles

How do I configure the email accounts for my Windows plan in Outlook?

To configure your email account you must specify the following information: Incoming mail...

How to solve error 0x800CCC0E in the Outlook email application?

The 0x800CCC0F error is due to the fact that the computer cannot connect to the server of its web...

How to solve Outlook errors 0800xccc8d and 0800xccc8b?

Outlook errors 0800xccc8d and 0800xccc8b can be caused by two reasons: 1st- the names of the...

How to solve error 0x800CCC0F in the Outlook application?

Error 0x800CCC0F is due to the computer being unable to connect to the server. In order to solve...

How to carry out maintenance on webmail?

You must perform the requested maintenance only once on the account that requires it. After this...