If you move or delete mailboxes from an Exchange 2010 database they are not fully deleted upon completion of the move. Instead of being deleted, they are marked as „soft-deleted“.

If you want to delete them completely (to mark the space as free in the databse), you have to use the Exchange Management Shell:


To see which mailboxes are Disabled ore Soft Deleted you have to run the following comand, where DB3 is the databse you want to check:

[PS] C:\Windows\system32>Get-MailboxStatistics -Database "DB3" | Where-Object {$_.DisconnectDate -Notlike $NULL} | Format-Table DisplayName, DisconnectDate, MailboxGuid, DisconnectReason -Wrap

DisplayName DisconnectDate MailboxGuid DisconnectReason
----------- -------------- ----------- ----------------
User1 19.03.2016 14:55:38 f0b19d65-9274-4fc9-84c0-01af6 SoftDeleted
User2 19.03.2016 13:25:06 23548802-ff1a-439b-b30b-56730 SoftDeleted
User3 19.03.2016 14:13:06 85e485b1-14b0-4067-9cb1-daaa0 SoftDeleted


To purge the mailboxes from the database you have to run the following command. You will be asked to confirm every mailbox. This is okay if you purge only a few mailboxes, otherwise you could add  -Confirm to purge without being asked for every mailbox


[PS] C:\Windows\system32>$Mailboxes = Get-MailboxStatistics -Database "DB3" | where {$_.DisconnectReason -eq "SoftDelete
[PS] C:\Windows\system32>$Mailboxes | foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -Mailb
oxState SoftDeleted}

Möchten Sie diese Aktion wirklich ausführen?
Das Postfach "f0b19d65-9274-4fc9-84c0-01af61b1661f" in der Datenbank "DB3" wird entfernt.
[J] Ja [A] Ja, alle [N] Nein [K] Nein, keine [?] Hilfe (Standard ist "J"):


Now the mailboxes are purged from the databse. If you check the space consumed on the storage by the databases you will see that the databses don’t get smaller. The reason is simple: Deleted objects within a database are only marked as free space and will be reused if more space is needed for new objects.

If you want to shrink the databse itself, you have to do an Offline Defragmantation. How to Offline Defragment an Exchange Database is described in this article.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.