Open System Preferences. Click on internet accounts. You will see a list on accounts you had already logged in to. Uncheck the box and click on “-” sign at the bottom left.
How do you sign out of your email on a Mac?
In order to view the mail on your system, you can go to the settings and then click on the internet accounts.