this command that remove all disconnected email from “Mailbox Database”
Get-MailboxStatistics -database “oberon\Mailbox Database” | where {$_.disconnectdate -ne $null} | foreach {Remove-mailbox -database $_.database -storemailboxidentity $_.mailboxguid}
————————————————–
Example The first example shows how to disconnect the user John Peoples’ (john) mailbox from the user account, and remove the mailbox object from Active Directory. The mailbox will remain in the Exchange database for the deleted mailbox retention period configured for the mailbox database.
The second example shows how to disconnect the user John Peoples’ (john) mailbox from the user account, remove the mailbox object from Active Directory, and remove the mailbox from the Exchange database.
The third example shows how to remove John Peoples’ (john) mailbox from the Exchange database, assuming the mailbox has already been disconnected from the user. The example show how to use the Get-MailboxStatistics cmdlet to retrieve the mailbox GUID value using the display name of the disconnected mailbox. This value is needed for the StoreMailboxIdentity parameter of the Remove-Mailbox cmdlet.
Remove-Mailbox -Identity contoso\john
Remove-Mailbox -Identity contoso\john -Permanent $true
$Temp = Get-MailboxStatistics | Where {$_.DisplayName -eq ‘John Peoples’}
Remove-Mailbox -Database Server01\Database01 -StoreMailboxIdentity $Temp.MailboxGuid
these two popular command that remove individual disconnected MailBox
$Temp = Get-MailboxStatistics | Where {$_.DisplayName -eq ‘Damon Hong’}
Remove-Mailbox -Database ”oberon\Mailbox Database” -StoreMailboxIdentity $Temp.MailboxGuid



