You can delete your Gmail account in the "Data & Personalization" section of your Google account settings.
It's easy to log out of Gmail on your iPhone by removing your Google account from the device. Here's how to do it.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results