Cpanel Exim Queue Mails How to Delete from SSH

If you ever get this problem like to have over 20k spam mails in your queue and you can’t list all in your Cpanel meil queue manager.. you can delete all mail with a few simple steps:
cd /var/spool/exim
find input -type f -exec rm -rf {} \;
find msglog -type f -exec rm -rf {} \;
service exim restart

Or you can just type this:
exim -bpru|grep frozen|awk {‘print $3’}|xargs exim -Mrm

Or
exiqgrep -zi | xargs exim -Mrm

You can also remove failed delivery messages to (likely) non-existent senders:
exiqgrep -i -f ‘<>‘ | xargs exim -Mrm