Delete certain emails using PowerShell

Welcome Forums General PowerShell Q&A Delete certain emails using PowerShell

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
1 year, 11 months ago.

  • Author
    Posts
  • #56999

    Participant
    Points: 0
    Rank: Member

    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

    Participant
    Points: 0
    Rank: Member

    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

    Participant
    Points: 0
    Rank: Member

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

The topic ‘Delete certain emails using PowerShell’ is closed to new replies.