How to Delete a BitLocker-Protected OneDrive Temporary Folder
Question details
The user needs to delete a persistent OneDrive temporary folder that cannot be removed due to BitLocker encryption or restricted Windows file permissions.

- Product
- OneDrive
- Device & OS
- Windows
- Scenario
- Attempting to clean up remaining temporary files after OneDrive has been uninstalled or stopped, but the system denies deletion.
- Observed behavior
- Windows prevents the deletion of the OneDrive temporary folder, prompting that the drive is encrypted or that the user lacks the necessary permissions.
Ensure you have your BitLocker recovery key or password available, and verify that OneDrive is completely closed or uninstalled so it is not actively locking the folder.
Unlock the Drive and Adjust Folder Permissions
The most common reason for this issue is that the drive is still locked by BitLocker, or the current user account lacks administrative ownership of the temporary folder.
Before modifying system folders, you must ensure the drive is fully decrypted or unlocked. Once unlocked, taking ownership of the folder bypasses standard permission errors.
Ensure OneDrive is not running. Right-click the OneDrive icon in the system tray and select 'Close OneDrive', or end the process via Task Manager.
Open the Windows Start menu, type 'Manage BitLocker', and press Enter. Locate the encrypted drive and click 'Unlock drive', entering your password or recovery key.
Right-click the stubborn OneDrive temporary folder, select 'Properties', and navigate to the 'Security' tab.
Click 'Advanced' in the Security tab. Next to the current owner's name, click 'Change', enter your Windows account name, and grant yourself 'Full Control'.
Click 'Apply' and 'OK' to save the new permissions. Right-click the temporary folder again and select 'Delete'.

Delete the Folder in Windows Safe Mode
Use this method if the folder remains locked by hidden background processes or stubborn system restrictions even after unlocking the drive.
Switch to WPS Office for a Lightweight, Hassle-Free Experience
If Microsoft Office and OneDrive integrations are causing system slowdowns or leaving stubborn temporary files on your encrypted drives, consider switching to WPS Office. It provides a lightweight, highly compatible alternative with built-in, easy-to-manage cloud capabilities.

Frequently Asked Questions
Why is my OneDrive folder encrypted by BitLocker?
BitLocker is a built-in Windows security feature. If it is enabled on your entire storage drive (often by default on modern Windows devices or configured by an employer), any folder created on it, including OneDrive temporary folders, is automatically encrypted.
Where is the OneDrive temporary folder usually located?
It is typically found in the root directory of your main drive (such as C:\ or D:\) or tucked within your user profile's AppData folder at C:\Users\[YourUsername]\AppData\Local\Microsoft\OneDrive.
Can I safely delete OneDrive temporary files?
Yes, temporary files are generally safe to delete, especially if OneDrive is no longer syncing or has been uninstalled. However, ensure all your important files are fully synced to the cloud before deleting any local cache or temporary folders.
What should I do if I lost my BitLocker recovery key?
Check your Microsoft Account online, as recovery keys are often backed up there automatically. If you are using a work or school device, contact your IT administrator. Without the password or recovery key, you cannot unlock the drive to modify or delete its files.




