How to Delete or Recover Locked OneDrive Business Files After Account Termination
Question details
The user needs to recover or delete local copies of OneDrive for Business files that have become locked and undeletable after their organizational account was terminated.

- Product
- OneDrive for Business
- Device & OS
- not provided
- Scenario
- A former employee or student is trying to manage local disk space or retrieve data from a terminated organizational Microsoft 365 account, but the local files are locked.
- Observed behavior
- Local copies of OneDrive files remain on the laptop taking up disk space, but they cannot be opened, deleted, or restored due to the account termination.
Do not attempt to force-delete the local files using third-party shredder tools until you have confirmed with your organization that file recovery is no longer needed or possible.
Contact the Organization's Microsoft 365 Administrator
Reach out to the IT administrator of the organization that issued the account, as they control retention policies, device management settings, and data access.
When an enterprise account is terminated, organizational policies (like Windows Information Protection) often lock local files to prevent unauthorized data access. Only the organization's IT department can temporarily restore access or remove the management profiles locking the files.
Find the contact information for the IT support desk or administrator of the company or school that provided your OneDrive for Business account.
If you need to recover personal data from those files, ask the administrator to grant you temporary access to the terminated account or to initiate a data recovery process on their end.
If you simply want to delete the files to free up disk space, ask the IT department to remove your laptop from their device management network (such as Microsoft Intune), which will lift the enterprise lock on the files.

Contact Microsoft Customer Support
If the organization's administrator is unreachable and you cannot remove the files locally, Microsoft Support can investigate the account and storage state.
Switch to WPS Office for Hassle-Free Document Management
If you are dealing with strict organizational locks on Microsoft 365 and need a reliable, independent office suite for your personal laptop, WPS Office is the perfect solution. It provides an excellent, lightweight alternative with built-in cloud storage that gives you full control over your personal files.

Frequently Asked Questions
Why are my OneDrive for Business files locked after account termination?
When an organization terminates an account, enterprise security policies often automatically revoke the encryption keys for local files. This is designed to prevent unauthorized access, deletion, or data leaks of company information.
Can I forcefully delete the locked OneDrive files to free up disk space?
You can sometimes force-delete these files by unlinking your work account from your device settings (e.g., going to Windows Settings > Accounts > Access work or school and disconnecting the account). However, it is highly recommended to consult your IT admin first to ensure no personal data is permanently lost.
Will reinstalling the OneDrive app remove the locked files?
No, simply uninstalling or reinstalling the OneDrive sync client will not remove files that are already locked by enterprise rights management policies on your local disk. The system-level encryption must be addressed first.




