Link to home
Start Free TrialLog in
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 Seth Simmons
Seth Simmons
Flag of United States of America image

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

Avatar of CFL Admin
CFL Admin

ASKER

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.

ASKER CERTIFIED SOLUTION
Avatar of Jason Zondag
Jason Zondag
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
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.