Deleting eMails from your Server using SSH
November 22nd, 2011 admin Location: Raleigh, NC, Topic: Web Design | Digital MediaYou may be in a dilemma. You have hundreds of emails arriving in your account. And now you either check them one by one or you delete them by the page. The best way to do this is instead to delete them via SSH.
I understand that this post may not be for everybody. You may not even know what SSH is. So this post is not for you. Believe me, SSH can be dangerous. So if you don’t know what you are doing it is probably better for you to do it page by page in your webmail application.
On the other hand if you are a systems admin here is how to do it:
SOLUTION
- Log in via ssh.
- Go to > /home/NAMEOFACCOUNT/mail/DOMAIN.COM/EMAIL
- execute the following commands:
rm -rf cur rm -rf new /* these two will remove all current and new emails from your account */
That’s it and now you should be good to go.
Related posts:
- Need to Export Mailman’s eMails for Backup?
- Cpmove Account Move from One server to another in Cpanel 3
- Updating Drupal Installations
- Sign Up for a Host Gator Hosting Account.
- Jquery UI – Installation in Drupal 6 – Easy
- 10 Cheap ways to get new clients: For Freelancers.
- VideoCast: Retrieving IP Addresses with Google Analytics
- When you get an Error: Could not connect to MySQL
- iPhone Ringing Issues
- Learning Website Design – Session 6 – The components


