Delete certain emails using PowerShell

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Wildcat4 Wildcat4 3 weeks, 4 days ago.

  • Author
    Posts
  • #56999
    Profile photo of Wildcat4
    Wildcat4
    Participant

    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
    Profile photo of Matt Bloomfield
    Matt Bloomfield
    Participant

    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
    Profile photo of Wildcat4
    Wildcat4
    Participant

    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.