CodeTwo Base.title

How to delete a user's mailbox content

Problem:

How to delete a user's mailbox content on Exchange Server or Exchange Online (Office 365)

Solution:

To delete items from mailboxes on any Exchange Server on-premises you can use a free third party tool MFCMapi. Please refer to the vendor's website for details.

Additionally, in Exchange Server 2013, 2016 or in Exchange Online (Office 365) you can remove mailbox's content from within ECP, see below how to do this:

  1. Log in to the Exchange Control Panel (ECP)
  2. Go to permissions, admin roles, select Organization Managementclick edit.

Organization Management permissions
Fig. 1. Editing ECP permissions. 

  1. ​Click a plus button under Roles.

349-2
Fig. 2. Editing roles of Organization Management.

  1. Select and add:
    • Mailbox Import Export
    • Mailbox Search

349-3
Fig. 3. Selecting additional roles in ECP.

  1. Click OK, Save, close ECP. Log out from Windows and re-log in.
  2. Log on to the ems Exchange Management Shell, in the case of Exchange Online log on via PowerShell.
  3. (Optional) Run the below PowerShell CmdLet to check how many items you will be deleting in the next steps:
    • Get-MailboxFolderStatistics <mailbox-name> | Select Identity, ItemsInFolder
  4. Run the below PowerShell CmdLet to delete the mailbox content:
    • ​​Search-Mailbox -Identity "<MailboxOrMailUserIdParameter>" -DeleteContent -force

      The MailboxOrMailUserIdParameter may be provided as an alias, canonical DN, display name, distinguished name and more. Please see this TechNet article for further reference.

Our Clients:
Unicef
Facebook
Shell
T-Systems
Loreal
Casio
UPS Israel
Oford University
Mitsubishi Motors
Toshiba TEC UK Imaging Systems Ltd
Illinois Institute of Technology
MAN Diesel
McDonalds India
Skoda Auto
Bank of Israel
Fujifilm
China Mobile
Santander
Samsung SDI
Skanska
Generali
Telmex
Toyota Tsusho
BECHTEL
Ricoh
BAE SYSTEMS
Federação Portuguesa de Futebol
Credit Agricole
HYUNDAI
Rothschild
Toyota Boshoku
Oriflame Romania
ING
Ikea
Nordea

Partners, certificates & awards