Empty mail inbox with ssh

if you want clear mail inbox from ssh , cd to mail directory and use this in your ssh command line:

rm -rf new
and
rm -rf cur

This article is updated for too many files deleting...

ls -1 | xargs rm -f

and or your email files are 2billion ! run this command to delete :

  1. ls -1 > file.txt

and then:

  1. rm $(<file.txt)

or

  1. xargs rm < file.txt


Article Information
Article ID Categories Tags Levels Status
#10
Free
Solved