Avatar of fastadvice
fastadvice
 asked on

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
ExchangeWindows Server 2003

Avatar of undefined
Last Comment
fastadvice

8/22/2022 - Mon
Camy

You can use the Export-Mailbox cmdlet with the -deletecontent switch;
https://technet.microsoft.com/en-us/library/aa998579.aspx
fastadvice

ASKER
Whats the export cmdlet for when i want to delete
Scott C

Try this....

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

If that doesn't do it look through the above article.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
fastadvice

ASKER
which bit should i exchange for the mailbox name
Scott C

The name of the mailbox.
ASKER CERTIFIED SOLUTION
Hariom

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
fastadvice

ASKER
If you have several mailboxes with the same name how do you find its identifier
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.