Fix 'Cannot Delete a OneDrive Folder Because Items Must Be Deleted First' Error
Question details
The user is unable to delete a folder in OneDrive because the system requires all items inside the folder to be deleted first, often due to nested files or organizational retention policies.

- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Attempting to delete a specific folder and its contents within the OneDrive environment.
- Observed behavior
- OneDrive blocks the folder deletion, displaying an error message that items must be deleted first. A Preservation Hold Library indicator may also be visible.
Ensure you have a stable internet connection and access to OneDrive via a web browser, as local desktop syncing issues can sometimes cause false deletion errors.
Delete Folder Contents Manually via OneDrive Web
The most direct way to resolve this issue is by logging into the OneDrive web interface and emptying the folder manually before deleting the main folder itself.
Sometimes local file explorer glitches or bulk deletion limits prevent a folder from being deleted all at once. Using the web interface forces the server to process the deletion directly.
Open your web browser and sign in to the official OneDrive website using your Microsoft account credentials.
Locate the folder you are trying to delete and click to open it so you can view its contents.
Select all the visible files and nested folders inside. Click the 'Delete' button located on the top menu bar.
If any nested folders remain, open them individually, delete their contents first, and work your way back up.
Once the main folder is completely empty, navigate back to your main directory and delete the now-empty parent folder.

Contact Your Microsoft 365 Admin to Review Retention Policies
If you see a 'Preservation Hold Library' or the manual deletion is still blocked on the web, your organization likely has compliance settings preventing deletion.
Manage Your Documents Seamlessly with WPS Office
While OneDrive's strict retention policies might restrict folder deletion, you can take control of your personal document management with WPS Office. As a lightweight, highly compatible alternative to Microsoft Office, WPS offers seamless local file management and its own flexible cloud storage.
- 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite for your device.
- 2. Open Existing Files: Easily open, edit, and save your existing Microsoft Office documents directly within WPS Office.
- 3. Save and Sync: Save your documents locally to your hard drive or use WPS Cloud for restriction-free online storage and syncing.

Frequently Asked Questions
What is a Preservation Hold Library in OneDrive?
A Preservation Hold Library is a hidden system folder in SharePoint and OneDrive. It is created automatically when a Microsoft 365 administrator applies retention policies or eDiscovery holds. Its purpose is to keep copies of modified or deleted files securely intact for organizational compliance and legal reasons.
Why do I need to delete nested files before deleting a OneDrive folder?
OneDrive's cloud architecture sometimes struggles to process bulk deletions of parent folders that contain thousands of nested files or files with conflicting user permissions. Deleting items individually ensures all file locks, permissions, and sync states are successfully cleared before the main directory is removed.
Can I force delete a folder using the OneDrive desktop app?
If the deletion issue is caused by a local syncing glitch, you can try deleting the folder from your local OneDrive directory using File Explorer (Windows) or Finder (Mac). However, if the restriction is due to a server-side retention policy, the desktop app will also fail to permanently delete it and will eventually resync the folder from the cloud.
Who is my Microsoft 365 administrator?
Your Microsoft 365 administrator is typically the person or IT department who set up your work or school email account. If you are using a personal Outlook.com or Microsoft account, you manage your own settings, and this error is likely caused by a syncing issue or hidden file rather than an organizational retention policy.




