I think this is the one that you want: Search for and delete email messages
If you are not familiar with PowerShell, you could create the search request from GUI:
After searching complete, you could connect to Security & Compliance Center, then use command below to delete those searched emails:
New-ComplianceSearchAction -SearchName "SearchName" -Purge -PurgeType HardDelete
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.