Thank you for posting your query in Microsoft Community.
I understand that you are trying to logout from Gmail account in Mail App.
It looks like it is not possible to logout from Gmail account in Mail App. You will have to remove the gmail account itself from the Mail App.
Refer to the link.
Please feel free to post if you have any issues regarding Windows. We would be glad to assist you better.
25 people were helped by this reply
Did this solve your problem?
Sorry this didn't help.
Great! Thanks for marking this as the answer.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this response?
Thanks for your feedback.
17 people were helped by this reply