How to delete gmail mails in bulk of a time
There are a few ways to delete Gmail emails in bulk:
Method 1: Using the Gmail search operator
- Log in to your Gmail account.
- Click on the search bar at the top of the page.
- Type the following search query:
in:inbox is:older_than:30d
(replace30d
with the number of days you want to delete emails from). - Press Enter to execute the search.
- Check the box next to the search results to select all emails.
- Click on the "Bulk actions" dropdown menu and select "Delete forever".
Method 2: Using the Gmail label feature
- Log in to your Gmail account.
- Create a new label by clicking on the "Labels" button in the top right corner of the page.
- Name the label (e.g., "Delete").
- Apply the label to the emails you want to delete by checking the box next to each email and clicking on the "Apply label" button.
- Go to the "Labels" page and click on the "Delete" label.
- Click on the "Bulk actions" dropdown menu and select "Delete forever".
Method 3: Using a third-party browser extension
- Install a browser extension like "Gmail Bulk Delete" or "Gmail Mass Delete" from the Chrome Web Store.
- Follow the extension's instructions to select the emails you want to delete.
- Click on the extension's button to delete the selected emails.
Method 4: Using the Gmail API
- Enable the Gmail API in the Google Cloud Console.
- Use a programming language like Python or JavaScript to connect to the Gmail API and delete emails.
- You can use the
users.messages.list
andusers.messages.delete
methods to list and delete emails.
Important notes:
- Be careful when deleting emails in bulk, as it's easy to accidentally delete important emails.
- Make sure you have backed up your emails before deleting them.
- If you're using the Gmail API, you'll need to set up authentication and authorization to use the API.
- Deleting emails in bulk may take some time, depending on the number of emails and your internet connection.