When you delete messages in Yahoo! Mail, they go to your Trash folder. If you delete a message by mistake, for a little while you'll be able to find it in Trash and move it back to your Inbox or another folder. Just remember that messages in your Trash folder can be deleted at any time, without warning.
To permanently remove the contents of Trash yourself, just click Empty next to Trash on the left side of the page. When messages are emptied from the trash folder, they are permanently deleted from the Yahoo! Mail server and cannot be recovered.