How to Find InPlaceHolds and Remove OneDrive Files Under Retention
Question details
The user is unable to delete files in OneDrive due to organizational holds or retention policies and needs a way to locate these policies to remove the restrictions.

- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Attempting to delete files from a Microsoft OneDrive account that is governed by an organization-wide retention policy or In-Place Hold.
- Observed behavior
- The system prevents file deletion, returning an error because the site or files are subject to a hold or Microsoft Purview retention policy.
Ensure you have Microsoft 365 global administrator or compliance administrator permissions, as viewing and modifying Purview retention policies requires administrative access.
Review Purview Policies and Exclude the User
Identify the Microsoft Purview retention policy blocking the deletion and exclude the affected OneDrive account.
When an organization-wide retention policy applies to OneDrive, SharePoint, or Teams, users cannot permanently delete protected files. Excluding the user from the specific policy removes this restriction.
Log in to the Microsoft Purview compliance portal using your administrator credentials.
Navigate to Data lifecycle management > Microsoft 365 > Retention policies in the left-hand menu.
Select the policy affecting the user's data and choose the 'Edit policy' option.
Under the Locations section, add the user's specific OneDrive account to the 'Excluded' list and save your changes.

Use Exchange Online PowerShell to Identify Policies
Run PowerShell commands to accurately pinpoint which retention policies are currently applied to a user's OneDrive location.
Switch to WPS Office for Flexible File Management
If enterprise retention policies in Microsoft 365 are too restrictive for your personal or small business needs, consider switching to WPS Office. It provides a lightweight, free, and straightforward suite for creating and managing your documents without being blocked by complex server-side holds.
- 1. Download WPS Office: Visit the official WPS website and download the free installation package for your operating system.
- 2. Install the Software: Run the installer and follow the on-screen instructions to set up WPS Office on your computer.
- 3. Manage Files Freely: Open, edit, and save your existing Office documents locally or on your preferred cloud storage without enterprise hold restrictions.

Frequently Asked Questions
Why am I unable to delete files from OneDrive?
File deletion in OneDrive is often blocked if your organization has an active Microsoft 365 retention policy, an eDiscovery hold, or an In-Place Hold applied to your account. These compliance features ensure data is preserved for a specific period.
What does an InPlaceHolds value with an 'mbx' prefix mean?
An InPlaceHolds value starting with an 'mbx' prefix indicates that a mailbox is specifically excluded from an organization-wide Microsoft 365 retention policy, rather than being subject to a direct In-Place Hold.
How long does it take for a retention policy exclusion to work?
After a Microsoft 365 administrator adds your account to a retention policy's exclusion list, you must typically wait at least 24 hours for the backend synchronization to complete before you can successfully delete files.
Can I bypass a retention policy without admin rights?
No, Microsoft Purview retention policies are enforced at the organization level. Only an administrator with appropriate compliance management permissions can modify the policies or add exclusions for specific users.




