Cleaning up your Gmail account with a handy script

When i logged in to Gmail this morningĀ i clicked “All Mail” and saw that i had over 44000 emails in my account. Sure, the search feature is great but i still find it annoying that year old notifications from linkedin litter my mailbox. So i started searching with queries like “from:linkedin.com” and mass-deleting these emails.…