How to remove mail forwarding in gmail

To remove mail forwarding in Gmail, you can follow these steps:

Method 1: Remove mail forwarding from the Gmail settings

  1. Sign in to your Gmail account.
  2. Click on the gear icon in the upper right corner of the page.
  3. Select "See all settings" from the dropdown menu.
  4. Scroll down to the "Forwarding and POP/IMAP" tab.
  5. Click on the "Remove" button next to "Forward a copy of incoming mail to" or "Forward a copy of incoming mail to another address".
  6. Confirm that you want to remove the forwarding rule by clicking "Remove" again.

Method 2: Remove mail forwarding from the Gmail account settings (mobile app)

  1. Open the Gmail app on your mobile device.
  2. Tap on the hamburger menu icon (three horizontal lines) in the top left corner of the screen.
  3. Tap on "Settings" from the menu.
  4. Scroll down to the "Accounts" section.
  5. Tap on "Forwarding" or "Forwarding and POP/IMAP".
  6. Tap on the "Remove" button next to "Forward a copy of incoming mail to" or "Forward a copy of incoming mail to another address".
  7. Confirm that you want to remove the forwarding rule by tapping "Remove" again.

Method 3: Remove mail forwarding using the Gmail API

If you have enabled the Gmail API for your account, you can use the API to remove mail forwarding. You will need to use the users.settings.update method and set the forwardingAddresses field to an empty array.

Here is an example of how to do this using the Gmail API:

POST https://www.googleapis.com/gmail/v1/users/me/settings/update
{
  "settings": {
    "forwardingAddresses": []
  }
}

Make sure to replace me with the actual username of the Gmail account you want to update.

After removing mail forwarding, any incoming emails will no longer be forwarded to the specified address.