Forum Discussion
Disable Recovery Deleted Items from Server for Office 365
Hi, Please advise is it possible to disable Recovery Deleted Items from Server for Office 365 I have tried adding DumpsterAlwaysOn and set to 0 into HKLM registry but it doesn;t work. Thank you.
Why would you want to disable it in the first place?
- DavidBowsher1300Copper Contributor
VasilMichev I want to turn it off for several unattended mailboxes to make cleanup easier when they're full and can't send.
- ankit shuklaIron Contributor
zorrogawa as VasilMichev mentioned "Why would you want to disable it in the first place?"
If you still wish or want to really stop the Recovery of Deleted Items and understand the risk of not saving/storing the data for Compliance/Legal/Recovery purpose, Run the commands in order -
For Individual Mailbox -
Set-Mailbox user@domain.com -RetainDeleteditemsfor 00:00:00:00
For all Mailboxes (Current ) in your organization including Shared Mailboxes
$mailbox = Get-Mailbox -Resultsize Unlimited
$Mailbox | Set-Mailbox -Retaindeleteditemsfor 00:00:00:00
For any future mailboxes that would be provisioned in your organization, change the attribute values for your Mailbox Plan (Depending upon license in your Organization)
You can use the Set-MailboxPlan cmdlet to change the RetainDeletedItemsFor value for all new mailboxes that you create in the future.
Refer - https://docs.microsoft.com/en-us/powershell/module/exchange/mailboxes/set-mailbox?view=exchange-ps
Please note what you are requesting is highly non recommended and there could be bigger issues if you happen to perform this. lease proceed at your own risk and do read below on preservation and configuration of deleted items in Exchange Online.
All the Best
Cheers !!
Ankit Shukla