Disable or delete a mailbox in Exchange Server (2024)

  • Article

In Exchange Server, you can use the Exchange admin center (EAC) or the Exchange Management Shell to disable or delete mailboxes. Disabled or deleted mailboxes are also known as disconnected mailboxes. For more information about disconnected mailboxes, see Disconnected mailboxes.

Note: If you need to delete a mailbox in Microsoft 365 or Office 365, see Delete or Restore User Mailboxes in Exchange Online.

What do you need to know before you begin?

  • Estimated time to complete each procedure: 2 minutes.

  • For more information about accessing and using the EAC, see Exchange admin center in Exchange Server. To learn how to open the Exchange Management Shell in your on-premises Exchange organization, see Open the Exchange Management Shell.

  • 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.

Disable mailboxes

When you disable a mailbox, all Exchange attributes are removed from the associated user account in Active Directory. The disconnected mailbox is hidden and marked for removal. The disconnected mailbox is permanently deleted (purged) based on the MailboxRetention property value for the mailbox database (the default value is 30 days). Before the mailbox is purged, you can reconnect it to a new or existing user account that doesn't already have an associated mailbox. For more information, see Connect a disabled mailbox.

Note: Disabling a mailbox that has an associated archive marks both the primary and archive mailboxes for removal. To only mark the archive mailbox for removal without affecting the primary mailbox, see Disable an archive mailbox.

Use the EAC to disable a mailbox

  1. In the EAC, go to Recipients, and click the tab for the type of mailbox that you want to disable:

    • Mailboxes for user mailboxes and linked mailboxes.

    • Shared for shared mailboxes.

  2. Find and select the mailbox that you want to disable. For example:

    • Scroll through the list. You can also click the column headers to sort the mailboxes.

    • Click Search and enter the text to filter the list of mailboxes.

    • Select multiple mailboxes by selecting a mailbox, holding the Shift key, and selecting a mailbox farther down in the list, or by holding down the CTRL key as you select each mailbox.

  3. After you've selected the mailbox or mailboxes that you want to disable, click More Disable or delete a mailbox in Exchange Server (1), select Disable, and then click Yes in the warning message that appears.

Use the Exchange Management Shell to disable a mailbox

To disable a mailbox, use this syntax:

Disable-Mailbox <MailboxIdentity> [-Arbitration] [-Archive] [-PublicFolder] [-RemoteArchive]

This example disables the user mailbox that has the alias value danj.

Disable-Mailbox danj

This example disables the room mailbox named Conf Room 31/1234 (12).

Disable-Mailbox "Conf Room 31/1234 (12)"

This example disables the shared mailbox that has the email address sharedmbx@contoso.com.

Disable-Mailbox sharedmbx@contoso.com

For detailed syntax and parameter information, see Disable-Mailbox.

How do you know this worked?

To verify that you've successfully disabled a mailbox, do any of these steps:

  • In the EAC, click Recipients, go to the appropriate tab for the type of mailbox that you disabled, and verify that the mailbox is no longer listed. Note that you might need to click Refresh Disable or delete a mailbox in Exchange Server (2).

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

  • In the Exchange Management Shell, replace <DisplayName> with the user's display name, and run the following commands to verify the DisconnectReason property value is Disabled (which indicates the mailbox has been marked for removal):

    $dbs = Get-MailboxDatabase$dbs | foreach {Get-MailboxStatistics -Database $_.DistinguishedName} | where {$_.DisplayName -eq "<DisplayName>"} | Format-List DisconnectReason,DisconnectDate

    Notes:

    • The DisconnectReason property doesn't distinguish between disabled and deleted mailboxes (the value for both is Disabled). The presence of the associated user account indicates whether the mailbox was disabled.

      When you delete a mailbox, the value of the DisconnectReason property is also Disabled, but the corresponding Active Directory user account is also deleted.

    • If the command returns no results, replace <DatabaseName> with the name of the mailbox database where the disconnected mailbox resides, and run this command to synchronize the mailbox state for all disconnected mailboxes on the database:

    Get-MailboxStatistics -Database "<DatabaseName>" | foreach {Update-StoreMailboxState -Database $_.Database -Identity $_.MailboxGuid -Confirm:$false}

    Then, run the previous command, which should now return results.

  • In the Exchange Management Shell, replace <UserIdentity> with the name or user principal name of the user (for example, user@contoso.com), and run this command to verify that the RecipientType property value is User, not UserMailbox.

    Get-User -Identity <UserIdentity>

Delete mailboxes

When you delete a mailbox, the mailbox is disconnected from the associated user account, and the account is removed from Active Directory. The disconnected mailbox is hidden and marked for removal. The disconnected mailbox is permanently deleted (purged) based on the MailboxRetention property value for the mailbox database (the default value is 30 days). Before the mailbox is purged, you can reconnect it to a new or existing user account that doesn't already have an associated mailbox. For more information, see Connect or restore a deleted mailbox.

Note: Deleting a mailbox that has an associated archive marks both the primary and archive mailboxes for removal. To only mark the archive mailbox for removal without affecting the primary mailbox, see Disable an archive mailbox.

Use the EAC to delete a mailbox

  1. In the EAC, go to the location for the type of mailbox that you want to delete:

    • Recipients > Mailboxes for user mailboxes and linked mailboxes.

    • Recipients > Resources for room and equipment mailboxes.

    • Recipients > Shared for shared mailboxes.

    • Public folders > Public folder mailboxes for public folder mailboxes.

  2. Find and select the mailbox that you want to disable. For example:

    • Scroll through the list. You can also click the column headers to sort the mailboxes.

    • Click Search and enter the text to filter the list of mailboxes.

    • Select multiple mailboxes by selecting a mailbox, holding the Shift key, and selecting a mailbox farther down in the list, or by holding down the CTRL key as you select each mailbox.

  3. After you've selected the mailbox or mailboxes that you want to delete, click Delete Disable or delete a mailbox in Exchange Server (3), and then click Yes in the warning message that appears.

Use the Exchange Management Shell to delete a mailbox

To delete a mailbox, use this syntax:

Remove-Mailbox <MailboxIdentity> [-Arbitration] [-PublicFolder]

This example deletes the mailbox that has the email address pilarp@contoso.com.

Remove-Mailbox pilarp@contoso.com

This example deletes the equipment mailbox named Fleet Van (16).

Remove-Mailbox "Fleet Van (16)"

This example deletes the mailbox that has the alias value corpprint.

Remove-Mailbox corpprint

For detailed syntax and parameter information, see Remove-Mailbox.

Note: If you use the Remove-Mailbox cmdlet with the Purge switch, the mailbox is immediately purged and isn't recoverable. For more information, see Permanently delete a mailbox.

How do you know this worked?

To verify that you've successfully deleted a mailbox, do any of these steps:

  • In the EAC, click Recipients, go to the appropriate tab for the type of mailbox that you deleted, and verify that the mailbox is no longer listed. Note that you might need to click Refresh Disable or delete a mailbox in Exchange Server (4).

  • In Active Directory Users and Computers, verify that the associated account is no longer listed. Note that mailbox types other than user and linked mailboxes also have associated user accounts that are disabled (for example, room, equipment, arbitration, shared, and public folder mailboxes).

  • In the Exchange Management Shell replace <DisplayName> with the user's display name, and run the following commands to verify the DisconnectReason property value is Disabled (which indicates the mailbox has been marked for removal):

    $dbs = Get-MailboxDatabase$dbs | foreach {Get-MailboxStatistics -Database $_.DistinguishedName} | where {$_.DisplayName -eq "<DisplayName>"} | Format-List DisconnectReason,DisconnectDate

    Notes:

    • The DisconnectReason property doesn't distinguish between disabled and deleted mailboxes (the value for both is Disabled). The absence of the associated user account indicates whether the mailbox was deleted.

    • If the command returns no results, replace <DatabaseName> with the name of the mailbox database where the disconnected mailbox resides, and run the following command to synchronize the mailbox state for all disconnected mailboxes on the database:

      Get-MailboxStatistics -Database "<DatabaseName>" | foreach {Update-StoreMailboxState -Database $_.Database -Identity $_.MailboxGuid -Confirm:$false}

      Then, run the previous command, which should now return results.

  • In the Exchange Management Shell, replace <UserIdentity> with the name or user principal name of the user (for example, user@contoso.com), and run this command to verify that the user can't be found.

    Get-User <UserIdentity>

More information

When you delete the Active Directory user account that's associated with a mailbox, Exchange will detect that the mailbox is no longer connected to a user account, and will mark the mailbox for removal, even if the mailbox has been placed on Litigation Hold or In-Place Hold. To retain the mailbox, do these steps:

  • Instead of deleting the user account, disable the user account.

  • Change the properties of the mailbox to restrict its use and who has access to the mailbox. For example, set send and receive quotas equal to 1, block who can send messages to the mailbox, and restrict who has access the mailbox.

  • Retain the mailbox until all data has been expunged, or until preserving the data is no longer required.

For more information, see In-Place Hold and Litigation Hold in Exchange Server.

Disable or delete a mailbox in Exchange Server (2024)

FAQs

What is the difference between deleting and disabling a mailbox in Exchange? ›

Disable/Delete User Mailbox
  1. Disabled: removes its Exchange attributes and its association to an user account which continues to exist but cannot use the disabled mailbox. ...
  2. Removed (Deleted): the mailbox is dissociated from the user account and the user account is removed from the Active Directory.

What does disabling an Exchange mailbox do? ›

Description. The Disable-Mailbox cmdlet removes the mailbox's Exchange attributes from Active Directory. The mailbox isn't deleted and can be reconnected to its user at a later date by using the Connect-Mailbox cmdlet.

How do I permanently delete a mailbox in Exchange Server? ›

Use the EAC to delete a mailbox
  1. In the EAC, go to the location for the type of mailbox that you want to delete: Recipients > Mailboxes for user mailboxes and linked mailboxes. ...
  2. Find and select the mailbox that you want to disable. ...
  3. After you've selected the mailbox or mailboxes that you want to delete, click Delete.
Feb 21, 2023

How to delete an Exchange mailbox without deleting the user? ›

To delete the Exchange Online mailbox and keep the user account, follow the steps below:
  1. Connect to Exchange Online PowerShell. Run Windows PowerShell as administrator and Connect to Exchange Online PowerShell. ...
  2. Remove Exchange Online license. ...
  3. Get user mailbox status. ...
  4. Clear previous mailbox info. ...
  5. Get mailbox deletion status.
Apr 19, 2024

What happens when you delete an Exchange mailbox? ›

Use Exchange Online PowerShell to delete a mailbox

When you delete an Exchange Online mailbox using Exchange Online PowerShell, the corresponding Microsoft 365 or Office 365 user is deleted and removed from the list of users in the Microsoft 365 admin center. The user will still be recoverable for 30 days.

When you delete a mailbox in Exchange Online retention? ›

In Exchange Online, a soft-deleted mailbox is a mailbox that's been deleted but can be recovered within a specific retention period. For soft-deleted mailboxes that aren't on hold, the mailbox is recoverable within 30 days.

What is the difference between disable and remove in Exchange 2010? ›

Disable gets rid of the Exchange attributes from the user account and marks the mailbox for deletion. Remove gets rid of the user account and marks the mailbox for deletion. The mailbox will still go to disconnected mailboxes for the retention period.

Will a disabled account still forward emails? ›

If you disable a user, the Active Directory object remains untouched together with the mailbox data and properties(including forwarding settings and full access), but you will not be able to access any mailbox data directly, using that user credentials.

What happens to Exchange Online mailbox when user is disabled? ›

When you disable a mailbox, Exchange retains the mailbox in the mailbox database and switches the mailbox to a disabled state. The Exchange attributes are also removed from the corresponding Active Directory user account, but the user account is retained.

How do I clean up my Exchange mailbox? ›

Best practices to keep your mailbox lean
  1. Archive older items – Move old items you want to keep to an archive. ...
  2. Empty the Deleted Items folder – Empty the Deleted Items folder frequently to make sure you aren't keeping messages you don't need.

Does deleting a mailbox delete an ad account? ›

In this article

When you permanently delete an active mailbox, the associated Active Directory user account is also deleted. An alternative to permanently deleting a mailbox is to disconnect it.

Why can't i delete mailbox Exchange? ›

This issue occurs because the EAC attempts to use the Remove-Mailbox cmdlet to remove the mailbox, but this cmdlet is unable to find the specified mailbox object. This behavior can be verified by checking the logs for the commands that were run.

What is the difference between deleting a mailbox and disabling a mailbox in exchange? ›

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.

How do I disable the exchange mailbox? ›

Disable a Mailbox in Exchange
  1. Open the Microsoft 365 Admin Center.
  2. Under Active users, select the user.
  3. Click on the Licenses and Apps tab.
  4. Deselect Exchange Online (Plan 1 or 2)
May 29, 2024

What is the difference between hard delete and soft delete in Exchange mailbox? ›

Soft delete vs Hard delete mailbox

This state is called soft delete state. If an administrator doesn't restore the mailbox within 30 days, it is deleted permanently (provided litigation hold is not applied). Once the mailbox is deleted permanently, it can not be recovered. This state is called hard delete state.

What does delete mailbox mean? ›

WARNING: Deleting a mailbox permanently deletes the mailbox and its contents (including other mailboxes), and can't be undone.

What is the difference between deleted and archive mailbox? ›

Whether you delete or archive an email message, it disappears from your inbox. A deleted message goes into the trash folder, but an archived message is defaulted to the Archive folder or All Mail on Gmail / Google Apps.

Top Articles
8 Easy Animals to Raise for New Farmers
Best Animals for a Homestead - Peaceful Heart Farm
Jail Inquiry | Polk County Sheriff's Office
Pet For Sale Craigslist
Craigslist Pets Longview Tx
Was ist ein Crawler? | Finde es jetzt raus! | OMT-Lexikon
Metallica - Blackened Lyrics Meaning
Faint Citrine Lost Ark
Chris wragge hi-res stock photography and images - Alamy
Clafi Arab
Back to basics: Understanding the carburetor and fixing it yourself - Hagerty Media
Ogeechee Tech Blackboard
83600 Block Of 11Th Street East Palmdale Ca
The Many Faces of the Craigslist Killer
Boat Jumping Female Otezla Commercial Actress
Max 80 Orl
Tokioof
Facebook Marketplace Charlottesville
Christina Khalil Forum
How pharmacies can help
Axe Throwing Milford Nh
X-Chromosom: Aufbau und Funktion
Mail.zsthost Change Password
Holiday Gift Bearer In Egypt
Form F-1 - Registration statement for certain foreign private issuers
Craigslist Maryland Trucks - By Owner
Apartments / Housing For Rent near Lake Placid, FL - craigslist
Sandals Travel Agent Login
Olivia Maeday
Parkeren Emmen | Reserveren vanaf €9,25 per dag | Q-Park
Gillette Craigslist
Delta Township Bsa
101 Lewman Way Jeffersonville In
Dubois County Barter Page
Leland Nc Craigslist
Breckie Hill Fapello
Diana Lolalytics
Rise Meadville Reviews
Log in or sign up to view
Chs.mywork
Metra Schedule Ravinia To Chicago
Oxford Alabama Craigslist
R Nba Fantasy
Delaware judge sets Twitter, Elon Musk trial for October
Aurora Il Back Pages
Brauche Hilfe bei AzBilliards - Billard-Aktuell.de
Big Reactors Best Coolant
Oklahoma City Farm & Garden Craigslist
Rescare Training Online
Myra's Floral Princeton Wv
St Als Elm Clinic
Latest Posts
Article information

Author: Lilliana Bartoletti

Last Updated:

Views: 5978

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Lilliana Bartoletti

Birthday: 1999-11-18

Address: 58866 Tricia Spurs, North Melvinberg, HI 91346-3774

Phone: +50616620367928

Job: Real-Estate Liaison

Hobby: Graffiti, Astronomy, Handball, Magic, Origami, Fashion, Foreign language learning

Introduction: My name is Lilliana Bartoletti, I am a adventurous, pleasant, shiny, beautiful, handsome, zealous, tasty person who loves writing and wants to share my knowledge and understanding with you.