Delete certain emails using PowerShell

I am going through the PowerShell courses in MVA and one of them said something about PowerShell having the ability to delete certain email(s) from certain user(s) in an Exchange/Office 365 environment. Does anybody know where I can find more information on how to specifically do this? Thank you.

They may have been referring to the Search-Mailbox cmdlet. You can use the -DeleteContent parameter to delete messages:

Technet: Search for and delete messages

Thanks Matt for your reply. Is there somewhere I can get Office 365 dummy data to practice on? Wildcat4