Search-Mailbox -Identity username -SearchQuery '#deleted items#' -DeleteContentI tried it without the '-DeleteContent' switch at the end so I could test it before deleting anything, but I get an error "The target mailbox or .pst file path is required.", even though I changed the '-Identity' value to my shared mailbox.
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.