Asked By
A Bagul
0 points
N/A
Posted on - 06/23/2016
Hello,
I have disconnected my mailbox, and now I require to remove the same. There was a Purge feature until the previous versions, but It’s no longer available in this version.
So is there any alternate way to delete a disconnected mailbox from Exchange 2010
Answered By
D Manob
10 points
N/A
#155078
Is It Possible To Delete A Disconnected Mailbox From Exchange 2010?
Yes, it is possible. As I understand you require deleting a mailbox that has been disconnected and want to leave no backup data behind. It is also possible to keep it backed up and disable the mailbox.
To delete the mailbox permanently please follow the steps given below.
Step 1: Open the Exchange command PowerShell and type the following code to run a clean task.
clean-mailboxdatabase "Mailbox Store Name"
Step 2: Type the command given below
Get-MailboxStatistics -Database "Mailbox-Store-Name" |
Where-Object {$_.Disconnect-Date -Notlike $NULL} | FL
Display-Name, Disconnect-Date, Mailbox-Guid
Result will appear as follows
Display-Name: USMAN
Disconnect-Date: 5-3-2011 15:40:47
Mailbox-Guid: ref4asbd-d156-5257-838f-470efc5e6s28
Step 3: The mailbox GUID is required to delete the mailbox completely. Use the below given command to delete the mailbox
Remove-Mailbox -Database "Mailbox Store Name" –
StoreMailboxIdentity ref4asbd-d156-5257-838f-
470efc5e6s28
By this command the mail box will be deleted