How to automatically delete mail from specific sender?
You don't actually need Automator for this.


Open your Gmail account in Mail
Create a mail rule for that account which deletes messages from the senders you want to get rid of
When saving the rule, you will be asked whether you want to apply the rule to the mails in the current mailbox