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.
You can delete your Gmail account in the "Data & Personalization" section of your Google account settings.
Click “Search.” Gmail will display all emails older than your chosen date. Select All → Delete. You’ll see a checkbox above your emails. Click it, then choose “Select all conversations that match this ...