Compliance Problems

Fix: Cannot Delete a Non-Empty OneDrive or Teams Folder

Huma Ashraf ChHuma Ashraf Ch Oct 21, 2026 869 views

Question details

Users are unable to delete a folder in OneDrive or Microsoft Teams, often receiving an error stating the request was cancelled or the folder is not empty.

How to Fix Cannot Delete a Non-Empty OneDrive or Teams Folder Error
Product
OneDrive and Microsoft Teams
Device & OS
not provided
Scenario
Attempting to clean up, organize, or remove old folders within a OneDrive account or a Microsoft Teams workspace.
Observed behavior
The deletion process is blocked, triggering a message about a non-empty folder or cancelled request, typically caused by hidden Microsoft Purview compliance restrictions.
Before you start

Ensure you have the necessary site administrator permissions, as overriding compliance holds and checking retention policies requires administrative access to the Microsoft 365 environment.

Solution 1Recommended

Check and Manage Retention Policies and Holds

Identify and modify any active retention policies, legal holds, or eDiscovery cases that are actively protecting the folder's contents.

Microsoft 365 uses retention policies to prevent accidental or malicious deletion of important data. If a folder contains files subject to these policies, the entire folder is locked from deletion, even if it appears empty to standard users.

1
Access the Compliance Portal

Sign in to the Microsoft Purview compliance portal using a global administrator or compliance administrator account.

2
Review Data Lifecycle Management

Navigate to 'Data lifecycle management' and check the 'Retention policies' tab to see if the affected SharePoint site or OneDrive account is included in an active policy.

3
Check eDiscovery and Legal Holds

Go to the 'eDiscovery' section to verify if there are any active cases or legal holds placed on the specific user account or Teams site.

4
Inspect the Preservation Hold Library

As an administrator, access the site contents of the affected SharePoint or OneDrive site to view the hidden 'Preservation Hold Library', which stores retained files.

5
Modify or Exempt Policies

If authorized by your organization, temporarily exclude the site from the retention policy or remove the hold so the folder can be successfully deleted.

Check and Manage Retention Policies and Holds
Compliance Warning: Do not remove legal holds or compliance protections without explicit approval from your organization's legal or IT compliance team.
Free Microsoft Office alternative

Use WPS Office for Hassle-Free Document Management

While resolving complex Microsoft 365 compliance policies and backend folder deletion errors requires administrative intervention, managing your daily documents doesn't have to be complicated. Consider switching to WPS Office for a lightweight, highly compatible, and user-friendly experience.

  1. 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install WPS Office: Run the downloaded installation file and follow the simple on-screen instructions to set up the software.
  3. 3. Open and Edit Documents: Launch WPS Office to instantly open, edit, and save your existing Microsoft Office files without formatting loss.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx)Lightweight application that runs smoothly on almost all devices and operating systemsBuilt-in robust cloud storage options without complex enterprise compliance locksFree to use with a familiar, easy-to-navigate interface for seamless migration
microsoft office alternative - wps office

Frequently Asked Questions

Why is my OneDrive folder saying it's not empty when it looks blank?

Hidden files, subfolders, or files preserved in the backend Preservation Hold Library can make a folder appear empty to a standard user, even though it still contains data protected by Microsoft Purview retention policies.

Can a standard user override a Microsoft 365 retention policy?

No. Only a designated Microsoft 365 compliance administrator or global administrator can modify, exempt, or remove retention policies, eDiscovery cases, or legal holds.

Where is the Preservation Hold Library located?

The Preservation Hold Library is a hidden document library on the SharePoint or OneDrive site. It is invisible to regular users, but administrators can access it by navigating to the advanced Site Contents page.

What should I do if no policy explains why the folder won't delete?

If your compliance administrator has confirmed there are no active retention labels, legal holds, or eDiscovery cases applying to the site, you should contact Microsoft Support to investigate potential backend synchronization issues.