If a user's Microsoft 365 account is deleted, their OneDrive files are preserved for a period of time. You can set this time period.
To set the retention time for OneDrive accounts
- Go to the Settings page of the new SharePoint admin center, and sign in with an account that has admin permissions for your organization.
-
Select the Retention setting.
-
Enter a value from 30 through 3650 in the Days to retain files a deleted user's OneDrive box.
The setting is activated for the next user that is deleted as well as any users that are in the process of being deleted. The count begins as soon as the user account was deleted in the Microsoft 365 admin center, even though the deletion process takes time.
-
Select Save.
Set the OneDrive Retention using PowerShell
You can configure for how long to retain the files after a user is marked for deletion using the Set-SPOTenant PowerShell cmdlet. The setting will really take effect for the next user that is deleted, Below commands will set the default retention of OneDrives in your tenant to 90 days.
Connect-SPOService -Url $TenantAdminURL -Credential (Get-Credential)
Set-SPOTenant -OrphanedPersonalSitesRetentionPeriod 90
More Information: https://docs.microsoft.com/en-us/onedrive/set-retention
Comments
0 comments
Please sign in to leave a comment.