OneDrive File Issues

Fix 'Cannot Delete a OneDrive Folder Because Items Must Be Deleted First' Error

Algirdas JasaitisAlgirdas Jasaitis Nov 2, 2026 868 views

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.

Fix 'Cannot Delete a OneDrive Folder Because Items Must Be Deleted First' Error
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.
Before you start

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.

Solution 1Recommended

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.

1
Log in to OneDrive Web

Open your web browser and sign in to the official OneDrive website using your Microsoft account credentials.

2
Navigate to the Problematic Folder

Locate the folder you are trying to delete and click to open it so you can view its contents.

3
Select and Delete Visible Items

Select all the visible files and nested folders inside. Click the 'Delete' button located on the top menu bar.

4
Clear Hidden Nested Folders

If any nested folders remain, open them individually, delete their contents first, and work your way back up.

5
Delete the Empty Parent Folder

Once the main folder is completely empty, navigate back to your main directory and delete the now-empty parent folder.

Delete Folder Contents Manually via OneDrive Web
Check Recycle Bin: You may also need to empty your OneDrive recycle bin if your storage quota is completely full, as full storage can prevent any file modifications.
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite for your device.
  2. 2. Open Existing Files: Easily open, edit, and save your existing Microsoft Office documents directly within WPS Office.
  3. 3. Save and Sync: Save your documents locally to your hard drive or use WPS Cloud for restriction-free online storage and syncing.
Fully compatible with Microsoft Word, Excel, and PowerPoint file formats (.docx, .xlsx, .pptx).Built-in WPS Cloud offers flexible file management without rigid enterprise administrative holds.Lightweight application that runs smoothly on Windows, Mac, Linux, and mobile platforms.Completely free to download and use with an intuitive, familiar user interface.
microsoft office alternative - wps office

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.