Hi, based on my test result, if the subject has the character " ' ", the command will not work for mailbox search(DeleteContent):
Besides, the parameter "received" couldn't be specified at a specific time, or you will not get any records about the message:
Finally, you could try the following command which worked successfully in my lab environment(More details about the Received and other properties: Message properties and
Search-Mailbox -Identity myuser@Company portal .com -SearchQuery {From:"John@jaswant .com" AND Subject:"Re: TEST: This isn't the correct mail ... for xyx or abc" AND (received>="<Received Start Date>" AND received<="Received End Date")} -DeleteContent -Force
-----------------
If an Answer is helpful, please click "Accept Answer" and upvote it.