Delete certain emails using PowerShell

This topic contains 2 replies, has 2 voices, and was last updated by  Wildcat4 1 year, 8 months ago.

  • Author
  • #56999


    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.

  • #57004

    Matt Bloomfield

    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

  • #57194


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

You must be logged in to reply to this topic.