If you are viewing Yahoo Mail with a program or mobile app like Mac Mail you will need to contact Apple Support for help.
Fix problems with New Mail: https://help.yahoo.com/kb/sln28075.html
If you are using Full-featured Mail you can drag and drop your mail into the trash folder if it won't delete. It will not work if you are using Basic Mail.
This is a Q&A site.