Delete exim queue via ssh?

If you have problems with php mailer scripts on your cpanel server. and you somehow manage to delete scripts but still you have enormous number of mails in youe exim queue and you cant delete it over your webhosting manager.. (WHM) you can try one of these commends in your ssh/terminal:

exim -bp | grep \< | awk ‘{print $3}’ | xargs exim -Mrm

exim -bpru|grep frozen|awk {‘print $3’}|xargs exim -Mrm

exiqgrep -zi | xargs exim -Mrm

exiqgrep -i -f ‘<>’ | xargs exim -Mrm


And you can use this script to clear your boxtrapper if you need to ..

exim -Mrm `grep -lr ‘To complete this verification, simply reply’ /var/spool/exi
m/input/ | sed -e ‘s/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g’` 2> /dev/null