To delete an email account on your iPad's Mail app, open the "Passwords & Accounts" section of the Settings app.
The easiest way to retrieve deleted emails from Yahoo is by quickly going to the Trash folder and undeleting them.