Exchange 2013 delete all sent email from one user to all users in domain.

So I was asked to do something funky in exchange. The owner is selling the company  and he is worried one of his employees might come back and take him to court. He occasionally sends out border line jokes or makes border line comments. His task to me:  Delete from the server every email I  have ever sent my employees. I guess I can log into every computer and delete from outlook but is there an easier way?

Thank you much.

Jorge
LVL 1
jclsandiegoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

StuartTechnical Architect - CloudCommented:
Does he also plan to delete any journal mailboxes, archives, backups and also scan for any PST backup taken on and off prem?

If you just want to search current mailboxes you should take a look at this - https://technet.microsoft.com/en-us/library/dd298059(v=exchg.150).aspx
Jakob DigranesSenior ConsultantCommented:
You can search and delete all emails from mailboxes.

First - give yourself permissions to do so;
create a group and add you user to that group
New-ManagementRoleAssignment -Name "Import Export Admin" -SecurityGroup "NameOfYourGroup" -Role "Mailbox Import Export"

First, search and log all emails found, just to make sure
Get-Mailbox -Server  "*Server*" | Search-Mailbox -SearchQuery 'Sender:"FROMADDRESS"  -targetmailbox "YourAdminMailbox" -targetfolder "LogResultFolder" -logonly -loglevel full

(Target mailbox is where result is posted)

Then - to delete:
Get-Mailbox -Server  "*Server*" | Search-Mailbox -SearchQuery 'Sender:"FROMADDRESS"  -DeleteContent

more here:

https://technet.microsoft.com/en-us/library/ff459253%28v=exchg.150%29.aspx
http://blogs.technet.com/b/exchange/archive/2010/10/27/removing-specific-messages-from-your-exchange-server.aspx
and here
http://ivan.dretvic.com/2011/05/remove-specific-email-from-all-mailboxes-in-exchange-2010-sp1/

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jclsandiegoAuthor Commented:
Thank you!!
jclsandiegoAuthor Commented:
Looking for some follow up help. I created a test email and preceded to run the command.
After I press enter I get this:

Get-Mailbox -Server  "*exchange*" | Search-Mailbox -SearchQuery 'Sender:"test@xyx.com"  -DeleteContent
>> _

a blinking cursor on the next line after the >>
no errors.

 Am I missing a step?
Jakob DigranesSenior ConsultantCommented:
you're missing a '

you write: Get-Mailbox -Server  "*exchange*" | Search-Mailbox -SearchQuery 'Sender:"test@xyx.com"  -DeleteContent

you shoul write
Get-Mailbox -Server  "*exchange*" | Search-Mailbox -SearchQuery 'Sender:"test@xyx.com" '-DeleteContent
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Wireless Hardware

From novice to tech pro — start learning today.