Link to home
Start Free TrialLog in
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
Avatar of Camy
Camy
Flag of United Kingdom of Great Britain and Northern Ireland image

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

ASKER

Whats the export cmdlet for when i want to delete
Avatar of Scott C
Try this....

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

If that doesn't do it look through the above article.
which bit should i exchange for the mailbox name
The name of the mailbox.
ASKER CERTIFIED SOLUTION
Avatar of Hariom
Hariom
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you have several mailboxes with the same name how do you find its identifier