Topic Last Modified: 2012-11-18

You can use the EAC or the Shell to disable or delete a mailbox. When a mailbox is disabled or deleted, Exchange retains the mailbox in the mailbox database and switches the mailbox to a disabled state. Disabled and deleted mailboxes are retained in the mailbox database until the deleted mailbox retention period expires, which is 30 days by default. After the retention period expires, the mailbox is permanently deleted or purged.

Note:
Disabled or deleted mailboxes are referred to as disconnected mailboxes.

The primary difference between deleting and disabling a mailbox is that when you disable a mailbox, the Exchange attributes are removed from the corresponding Active Directory user account, but the user account is retained. When you delete a mailbox, both the Exchange attributes and the Active Directory user account are deleted. This difference also determines your options to reconnect or restore disabled and deleted mailboxes.

The following table shows which types of Exchange mailboxes you can disable and delete.

Mailbox type Disable? Delete?

Archive mailbox

Yes

No *

Linked mailbox

Yes

Yes

Resource mailbox (Room or Equipment)

No

Yes

Shared mailbox

Yes

Yes

User mailbox

Yes

Yes

* If an archive mailbox is enabled, it will be deleted when the primary mailbox is deleted. For information about disabling archive mailboxes, see Manage In-Place Archives.

For additional management tasks related to disconnected mailboxes, see the following topics:

What do you need to know before you begin?

  • Estimated time to complete each procedure: 2 minutes.

  • You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Recipient Provisioning Permissions" section in the Recipients Permissions topic.

  • For information about keyboard shortcuts that may apply to the procedures in this topic, see Keyboard Shortcuts in the Exchange Admin Center.

Tip:
Having problems? Ask for help in the Exchange forums. Visit the forums at: Exchange Server, Exchange Online, or Exchange Online Protection.

What do you want to do?

Disable a mailbox

As previously stated, when you disable a mailbox, the Exchange attributes are removed from the corresponding Active Directory user account, but the user account is retained.

Use the EAC to disable a mailbox

The following procedure shows how to disable a user mailbox. Use the same procedure to disable other mailbox types after navigating to the appropriate page in the EAC.

  1. In the EAC, navigate to Recipients > Mailboxes.

  2. In the list of user mailboxes, click the mailbox that you want to disable.

  3. Click More More Options Icon and then click Disable.

  4. A warning appears asking if you’re sure you want to disable the mailbox. Click Yes to disable the mailbox.

The mailbox is removed from the mailbox list.

Use the Shell to disable a mailbox

Use the following command to disable user mailboxes, linked mailboxes, resource mailboxes, and shared mailboxes.

Copy Code
Disable-Mailbox <identity>

When you run this command, a message is displayed that asks you to confirm that you want to disable the mailbox.

Here are some examples of commands for disabling mailboxes.

Copy Code
Disable-Mailbox danj
Copy Code
Disable-Mailbox "Conf Room 31/1234 (12)"
Copy Code
Disable-Mailbox sharedmbx@contoso.com

How do you know this worked?

To verify that you’ve successfully disabled a mailbox, do one of the following:

  • In the EAC, click Recipients, navigate to the appropriate page for the mailbox type that you disabled, and then verify that the mailbox is no longer listed.

  • In Active Directory Users and Computers, right-click the user account whose mailbox you disabled, and then click Properties. On the General tab, notice that the E-mail field is blank. This verifies that the mailbox is disabled, but the user account still exists.

  • In the Shell, run the following command.

    Copy Code
    Get-MailboxDatabase | Get-MailboxStatistics | Where { $_.DisplayName -eq "<display name>" } | fl DisconnectReason,DisconnectDate
    
    The Disabled value in the DisconnectReason property indicates that the mailbox is disabled.

    Note:
    When you delete a mailbox, the value in the DisconnectReason property is also Disabled. However, the corresponding Active Directory user account is deleted.
  • In the Shell, run the following command.

    Copy Code
    Get-User <identity>
    
    Note that that value for the RecipientType property is User, instead of UserMailbox, which is the value for users with enabled mailboxes. This also verifies that the mailbox is disabled, but the user account is retained.

Delete a mailbox

As previously stated, when you delete a mailbox, both the Exchange attributes and the Active Directory user account are deleted. The mailbox (and the archive mailbox, if it’s enabled) will be permanently deleted from the mailbox database after the mailbox retention period expires.

Use the EAC to delete a mailbox

The following procedure shows how to delete a user mailbox. Use the same procedure to delete other mailbox types after navigating to the appropriate page in the EAC.

  1. In the EAC, navigate to Recipients > Mailboxes.

  2. In the list of user mailboxes, click the mailbox that you want to delete, and then click Delete Delete Icon.

  3. A warning appears asking if you’re sure you want to delete the mailbox. Click Yes to delete the mailbox.

The mailbox is removed from the mailbox list.

Use the Shell to delete a mailbox

Use the following command to delete user mailboxes, linked mailboxes, resource mailboxes, and shared mailboxes.

Copy Code
Remove-Mailbox <identity>

When you run this command, a message is displayed that asks you to confirm that you want to remove the mailbox and the corresponding Active Directory user account.

Here are some examples of commands for deleting mailboxes.

Copy Code
Remove-Mailbox pilarp@contoso.com
Copy Code
Remove-Mailbox "Fleet Van (16)"
Copy Code
Remove-Mailbox corpprint

How do you know this worked?

To verify that you’ve successfully deleted a mailbox, do one of the following sets of verification procedures.

  1. In the EAC, click Recipients and then navigate to the appropriate page for the mailbox type that you deleted, and verify that the mailbox is no longer listed.

  2. In Active Directory Users and Computers, verify that the corresponding user account is no longer listed.

Or

  1. Run the following command to verify that the mailbox has been deleted.

    Copy Code
    Get-MailboxDatabase | Get-MailboxStatistics | Where { $_.DisplayName -eq "<display name>" } | fl DisconnectReason,DisconnectDate
    
    The Disabled value in the DisconnectReason property indicates that the mailbox has been deleted.

    Note:
    When you disable a mailbox, the value in the DisconnectReason property is also Disabled. However, the corresponding Active Directory user account is retained.
  2. Run the following command to verify that Active Directory user account has been deleted.

    Copy Code
    Get-User <identity>
    
    The command will return an error stating that user couldn’t be found, verifying that the account was deleted.