Exchange mailboxes not deleting?

EffEffTee
EffEffTee used Ask the Experts™
on
Hello

I've deleted a bunch of user accounts in AD (and selected to mark mailboxes for deletion), but the mailboxes still remain (even after a few days).  in ESM if I right click the mailbox, the Purge item is greyed out.

Any idea how I can get rid of these mailboxes and when they might delete themselves automatically?

thanks,
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
In the future delete the account through exchange managment console rather than through AD.

Use this remove-mailbox command in PowerShell

http://technet.microsoft.com/en-us/library/aa995948.aspx
EffEffTeeIT Director

Author

Commented:
But the option for "mark selected mailbox for deletion" was ticked - so surely it should delete it??
IT Support Analyst
Commented:
I believe the default mailbox retention period is 30 days but you can run a shell script to purge it right away if you want. I used this script to remove a mailbox when it was in a disconnected state.


$Temp = Get-MailboxStatistics | Where {$_.DisplayName -eq ‘David Johns'}
Remove-Mailbox -Database 'Mailbox Database' -StoreMailboxIdentity $Temp.MailboxGuid

Open in new window

I would use the remove-mailbox -Identity command rather than the -database command.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial