Deleting mails to create storage

Deleting mails to create storage

When I try to select mails from specific senders in inbox and try to move them to trash, I get a message "cannot move more than 200 mails at a time". My problem is I have thousands of mails and my inbox is 88% full. I want to retain mails for last 6 months and delete all before that in one command. Is it possible?