Cron Job code - delete emails off server when they are received - cpanel

livewirewebsolutions used Ask the Experts™
I am with hostgator and have a cpanel on my account with the ability to add cron jobs.  I currently have all emails on the cpanel forwarded to my internet hosting email.  I want to have the emails deleted off the web server when I receive them on my email system at home.  Does anyone have a cron job code for this?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
2nd Line Engineer
something similar which you may be able to mod to your requirements >>
I was looking for something more simple than that.
Most Valuable Expert 2011
Top Expert 2016

The inMotion example looks about as simple as it can get.  It seems like it would be easy to change "archive" to "delete" with only a few lines of code.

What has HostGator said when you asked them about this question?  Surely you are not the first HostGator client who was interested in automatic cleanup!
They just said you could write a cron job.  That's it.  When I went to the cpanel and clicked on Cron jobs there was a bunch of fields with dates and times etc... and one field to input the code.

I thought I could just complete the fields and enter a simple line of code and I would be done.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial