Set the OneDrive retention for deleted users

If a user's Office 365 account is deleted, their OneDrive for Business files are preserved for a period of time that you can specify.

To set the retention time for OneDrive accounts

  1. Open the OneDrive admin center, and click the Storage tab.

    The Storage tab of the OneDrive admin center
  2. Enter the number of days you want to retain OneDrive files in the Days to retain files in OneDrive after a user account is marked for deletion box.

    The count begins as soon as you delete the user account in the Office 365 admin center, even though the deletion process takes time. The maximum value is 3650 days (ten years).

  3. Click Save.

See Also

Remove OneDrive users and secure their files

Set up OneDrive to alert managers and delegate access automatically when users leave your organization

Include a OneDrive account in a retention policy

Use the new OneDrive admin center

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.