How to deleat all mails except important mssg in gmail

To delete all emails except important messages in Gmail, you can use the following methods:

Method 1: Using Gmail's built-in filters

  1. Log in to your Gmail account.
  2. Click on the gear icon () and select "See all settings."
  3. Go to the "Filters and Blocked Addresses" tab.
  4. Click on "Create a new filter."
  5. In the "From" field, enter a keyword or phrase that is common to all the emails you want to delete (e.g., "newsletter" or "promotion").
  6. Click on "Create filter."
  7. In the "Apply the label" dropdown menu, select "Important" (or any other label you've created for important emails).
  8. Click on "Apply" to apply the filter to all emails that match the criteria.
  9. Go to the "Labels" tab and select the label you just created.
  10. Click on the three vertical dots next to the label and select "Delete label" to delete all emails that don't have the "Important" label.

Method 2: Using Gmail's search operator

  1. Log in to your Gmail account.
  2. Use the search operator is:important to find all important emails. You can also use other search operators like label:important or has:label important.
  3. Click on the "Search" button to execute the search.
  4. In the search results, select all the emails by checking the box at the top left corner of the page.
  5. Click on the "Bulk actions" dropdown menu and select "Mark as read" or "Delete" to delete all emails that are not important.

Method 3: Using a third-party add-on

  1. Install a third-party add-on like "Sanebox" or "SaneBlackHole" that can help you delete unwanted emails.
  2. Configure the add-on to delete emails that are not marked as important.
  3. The add-on will automatically delete all emails that don't have the "Important" label.

Important note:

Before deleting any emails, make sure you have backed up your Gmail account or exported your important emails to a separate account or storage service. Deleting emails can be permanent and irreversible, so be cautious when using these methods.