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 ...
If you have old emails from years ago still sitting in your inbox then now is the time to clear them out, and there's a quick way to do it.