How to Create a Gmail Filter to Automatically Delete Emails Older Than X Days

If you want to automatically delete promotional emails from your Gmail inbox after 90 days, you can set up a filter to handle this for you. Follow these simple steps:

Create a Gmail Filter

Step 1: Access Gmail Filters

  1. Open Gmail.
  2. Click the Settings icon (⚙️) in the top-right corner.
  3. Select See all settings.
  4. Navigate to the Filters and Blocked Addresses tab.
  5. Click Create a new filter.

Step 2: Set Up the Filter

  1. In the "Includes the words" field, enter:
    older_than:90d
    older_than:3650d = 10 Years
    • This filters promotional emails older than 90 days.
  2. Click Create filter with this search.

Step 3: Apply the Deletion Rule

  1. Tick the Delete it checkbox.
  2. Click Create filter to finalise.

Your Gmail will now automatically delete emails older than 90 days.

Customising the Filter

  • Change the time frame: Replace 90d with any number of days (older_than:180d for six months).
  • Use the reverse filter: To find newer emails instead, use:
    newer_than:90d
    
    • This can be used to automatically label newer emails instead of deleting them.

By using these Gmail filters, you can keep your inbox organised without manual effort.