Exchange 2007

How do i delete all emails from one mailbox and is there any software that can do this using a gui, seems like a painful process to carry out a simple job
Who is Participating?

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

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.

You can use the Export-Mailbox cmdlet with the -deletecontent switch;
fastadviceAuthor Commented:
Whats the export cmdlet for when i want to delete
Scott CSenior EngineerCommented:
Try this....

Get-Mailbox -Database DB1 | Export-Mailbox -TargetMailbox ExportMailbox  -DeleteContent

If that doesn't do it look through the above article.
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

fastadviceAuthor Commented:
which bit should i exchange for the mailbox name
Scott CSenior EngineerCommented:
The name of the mailbox.
HariomExchange ExpertsCommented:
Get-Mailbox -Identity dschatz | Search-Mailbox -ContentFilter {((Received -lt ’12/06/1990') -and (Received -ge ’04/01/2013'))} -DeleteContent -force


Use the following command below which will delete all email for mailbox in your Exchange environment up until September 18th 2015.

search-mailbox -identity <username> -SearchQuery "Received:<$('18/09/2015')" -deletecontent


You can delete e-mails using auto archive option available in outlook

Click the File tab.

Click Options.

Click Advanced.

Under AutoArchive, click AutoArchive Settings.

Select the Run AutoArchive every n days check box, and then specify how often to run AutoArchive.

Select any other options that you want. You can choose to have old items deleted automatically at AutoArchive.

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
fastadviceAuthor Commented:
If you have several mailboxes with the same name how do you find its identifier
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

From novice to tech pro — start learning today.