Delete all contacts in users mailbox Exchange 2010

I'm trying to delete all users contacts in Exchange 2010 using EMS and am encountering an error

Search-Mailbox –identity "Administrator" –SearchQuery "kind:contacts" –DeleteContent
A positional parameter cannot be found that accepts argument '-DeleteContent'.
    + CategoryInfo          : InvalidArgument: (:) [Search-Mailbox], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Search-Mailbox

Search-Mailbox –identity Administrator –SearchQuery "kind:contacts" -EstimateResultOnly
This runs fine and returns results

The first query doesn't even auto-complete for -DeleteContent

Any suggestions?
KThraceAsked:
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.

Seth_zinCommented:
http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Q_27652901.html

Scroll to the bottom (Ignore the answer itll take you to page where you have to piece it all together yourself) the Author puts what command he used for that. It's for 2007 but it should work for 2010 too.
0
Seth_zinCommented:
Or I can just post it here, haha:

Export-Mailbox -Identity USERNAME -IncludeFolders '\Contacts' -DeleteContent
0
KThraceAuthor Commented:
I tried that already. Export-Mailbox has been replaced with New Mailbox Export Request.
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Seth_zinCommented:
Ah ok, sorry I wasn't aware, Ill dig around some more.
0
KThraceAuthor Commented:
I ended up creating an outlook profile for each user and deleting the contacts through Outlook.
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
Seth_zinCommented:
Sorry I wasn't able to help, I was going to see if I could use a exchange box to test it out but it would have took too long for your problem.
0
KThraceAuthor Commented:
Was not provided a solution. Used workaround.
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.