Avatar of CFL Admin
CFL Admin
 asked on

Delete Deleted Recoverable from Exchange Server

Hello EE -
I am trying to find out if there is a way to delete the Deleted Recoverable on an Exchange 2016 or Exchange 2019 Server?
I had a user that had a 35G mailbox, we worked with this user and moved email from 2010 - 2019 into separate folder(s) (ie: 2010, 2011, 2012) then exported them into a PST to a USB drive. Mailbox in EAC now shows it is 13G; however when I try to do a New-MoveRequest it comes up showing the original 35G that it is trying to move.
I tried going into this users outlook client, right clicking on deleted items, but there is no option for Recover Deleted Items, which should then allow me to select the Purge option, clearing it from the client, server and the DB the user is on.
Is there a powershell command that I can use to "Get" the deleted recoverable items and/or a "Remove" command. I tried Exchange Tool on the server(s); however I do not see anywhere that I can view Deleted Recoverable items so that I can select and purge.

Thank you


Avatar of undefined
Last Comment
CFL Admin

8/22/2022 - Mon
Seth Simmons

first thing that comes to mind is edit the mailbox properties and change the deleted items retention instead of having to wait x days for whatever the database is configured for; set it to 0 for that mailbox and the size should reduce soon after

Set-Mailbox -Identity - "john doe" -RetainDeletedItemsFor 0 -RetainDeletedItemsUntilBackup $true

Open in new window

CFL Admin

Thank you Seth - I ran the command and will check it out in the morning, allowing it to run over night. I will get back to you soon.

Jason Zondag

View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
CFL Admin

Thank you Jason - I will look at the link to see if has what I am looking for. The shell command ran provided by Seth did knock the mailbox down quit a bit, but it still does not match what EAC is showing, maybe I need to wait longer not sure. I will be sure to get back to both of you!
Thanks again.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
CFL Admin

Thank you to Seth and Jason for your responses, between the two of you I was able to fix my issue. Steps I took started off with Seths recommendation. I ran Set-Mailbox -Identity - "john doe" -RetainDeletedItemsFor 0 -RetainDeletedItemsUntilBackup $true
This cleared out some of the RecoverableItems (roughly 11G) mailbox then was showing 19G instead of 35G when using the New-MoveRequest.
Using the link provided by Jason allowed me to use the following command to see what was purgeable for my user:
Get-MailboxFolderStatistics "john doe" -FolderScope RecoverableItems | Format-List Name,FolderAndSubfolderSize
Once I had that information I was able to use two options to clear out the RecoverableItems.
Powershell: Search-Mailbox -Identity "john doe" -SearchDumpsterOnly -DeleteContent
or I found that in the Outlook client I could go to deleted and just below the search deleted items there was a link "Recover Items recently from this folder", this opened a new  window which I was able to Select All and then click the radio button for Purge selected Items.
Thank you again for your help. I am not sure how I can award both of you the solution but I do.