Disable Recovery Deleted Items from Server for Office 365

%3CLINGO-SUB%20id%3D%22lingo-sub-770099%22%20slang%3D%22en-US%22%3EDisable%20Recovery%20Deleted%20Items%20from%20Server%20for%20Office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-770099%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20Please%20advise%20is%20it%20possible%20to%20disable%20Recovery%20Deleted%20Items%20from%20Server%20for%20Office%20365%20I%20have%20tried%20adding%20DumpsterAlwaysOn%20and%20set%20to%200%20into%20HKLM%20registry%20but%20it%20doesn%3Bt%20work.%20Thank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-770099%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Groups%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-770949%22%20slang%3D%22en-US%22%3ERe%3A%20Disable%20Recovery%20Deleted%20Items%20from%20Server%20for%20Office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-770949%22%20slang%3D%22en-US%22%3E%3CP%3EWhy%20would%20you%20want%20to%20disable%20it%20in%20the%20first%20place%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-773102%22%20slang%3D%22en-US%22%3ERe%3A%20Disable%20Recovery%20Deleted%20Items%20from%20Server%20for%20Office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-773102%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F380871%22%20target%3D%22_blank%22%3E%40zorrogawa%3C%2FA%3E%26nbsp%3Bas%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3B%20mentioned%20%22%3CSPAN%3EWhy%20would%20you%20want%20to%20disable%20it%20in%20the%20first%20place%3F%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EIf%20you%20still%20wish%20or%20want%20to%20really%20stop%20the%20Recovery%20of%20Deleted%20Items%20and%20understand%20the%20risk%20of%20not%20saving%2Fstoring%20the%20data%20for%20Compliance%2FLegal%2FRecovery%20purpose%2C%20Run%20the%20commands%20in%20order%20-%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EFor%20Individual%20Mailbox%20-%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ESet-Mailbox%20user%40domain.com%20-RetainDeleteditemsfor%2000%3A00%3A00%3A00%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EFor%20all%20Mailboxes%20(Current%20)%20in%20your%20organization%20including%20Shared%20Mailboxes%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%24mailbox%20%3D%20Get-Mailbox%20-Resultsize%20Unlimited%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%24Mailbox%20%7C%20Set-Mailbox%20-Retaindeleteditemsfor%2000%3A00%3A00%3A00%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EFor%20any%20future%20mailboxes%20that%20would%20be%20provisioned%20in%20your%20organization%2C%20change%20the%20attribute%20values%20for%20your%20Mailbox%20Plan%20(Depending%20upon%20license%20in%20your%20Organization)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EYou%20can%20use%20the%20Set-MailboxPlan%20cmdlet%20to%20change%20the%20RetainDeletedItemsFor%20value%20for%20all%20new%20mailboxes%20that%20you%20create%20in%20the%20future.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ERefer%20-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fexchange%2Fmailboxes%2Fset-mailbox%3Fview%3Dexchange-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fexchange%2Fmailboxes%2Fset-mailbox%3Fview%3Dexchange-ps%3C%2FA%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EPlease%20note%20what%20you%20are%20requesting%20is%20highly%20non%20recommended%20and%20there%20could%20be%20bigger%20issues%20if%20you%20happen%20to%20perform%20this.%20lease%20proceed%20at%20your%20own%20risk%20and%20do%20read%20below%20on%20preservation%20and%20configuration%20of%20deleted%20items%20in%20Exchange%20Online.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FExchange%2Fpolicy-and-compliance%2Frecoverable-items-folder%2Frecoverable-items-folder%3Fview%3Dexchserver-2019%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FExchange%2Fpolicy-and-compliance%2Frecoverable-items-folder%2Frecoverable-items-folder%3Fview%3Dexchserver-2019%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Frecipients-in-exchange-online%2Fmanage-user-mailboxes%2Fchange-deleted-item-retention%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Frecipients-in-exchange-online%2Fmanage-user-mailboxes%2Fchange-deleted-item-retention%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EAll%20the%20Best%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ECheers%20!!%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EAnkit%20Shukla%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

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.

2 Replies

Why would you want to disable it in the first place?

Highlighted

@zorrogawa as @Vasil Michev  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.

 

https://docs.microsoft.com/en-us/Exchange/policy-and-compliance/recoverable-items-folder/recoverable...

 

https://docs.microsoft.com/en-us/exchange/recipients-in-exchange-online/manage-user-mailboxes/change...

 

All the Best 

 

Cheers !!

Ankit Shukla