What are the fastest way to empty an exchange 2007 mailbox?

I have an un-monitored mailbox collecting junk emails, and it growing fast and wanna find out what are the fastest ways that i can empty all those junk emails out.
lappladminAsked:
Who is Participating?
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.

Scott CSenior EngineerCommented:
Exchange Server 2010 RTM or Exchange Server 2007

The RTM version of Exchange 2010 and of Exchange 2007 use the Get-Mailbox cmdlet to search for and remove messages from mailboxes.

https://technet.microsoft.com/en-us/library/Hh547012(v=EXCHG.141).aspx

Example:
The following command removes all messages that contain the words “Surprise Party” in the Subject field or message body from all mailboxes in the organization:

Get-Mailbox -ResultSize Unlimited | Export-Mailbox -ContentKeywords "Surprise Party" -TargetMailbox MyBackupMailbox -TargetFolder 'SurprisePartyFolder' -DeleteContent


Or you can log into the maibox, select all email and shift-delete.
0

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
lappladminAuthor Commented:
specifically i am looking for a cmdlet in exchange 2007
0
Scott CSenior EngineerCommented:
Yes.  The link I posted applies to Exchange 2007/2010/2013.  I don't think wildcards can be used.  You'll need to find some common identifier that all of the messages have in common.
0
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
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.