How to Delete a Gmail Account Emails Automatically?

If you don't find filter in search bar then go to setting and  click  on see all settings.

To Protect Your Google Account Being Hacked

On setting Page you will find  "Filter and blocked addresses"    after clicking it in the bottom click  "Create a new filter" 

On the first you will find "From" here you need to enter unwanted emails Name or addresses like Zomato, Swiggy, Facebook etc...

When you entered Email Addresses now Select "Delete it" and now your filter is ready just click on "create it"