Script to delete mails with subject "test mail" in office 365 from sender

Can someone help to delete mails from office365 mailboxes which have specific subject, sender, and from date.

I tried below methods to display emails but didn’t work

Get-Mailbox -ResultSize unlimited | Search-Mailbox -SearchQuery ‘Subject:“test mail”’

Thanks in Advance

Did you check this documentation about deleting emails ?