How to Find Retention Policies Affecting a Microsoft 365 User
Question details
The user needs to find and identify retention policies, holds, or locations that are preventing files from being deleted from a user's Microsoft 365 services like OneDrive.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- Attempting to delete files from OneDrive or other M365 services but being blocked by compliance holds or retention policies.
- Observed behavior
- Files cannot be permanently deleted due to active retention policies or holds affecting the Microsoft 365 user account.
Ensure you have Microsoft 365 Global Administrator or Compliance Administrator privileges and access to the necessary PowerShell modules before attempting to query organizational retention policies.
Seek Specialized Microsoft 365 Support in the Q&A Forum
Because identifying specific holds requires specialized PowerShell cmdlets and admin access, the official Microsoft 365 Q&A forum is the most effective place to resolve complex retention policy issues.
PowerShell commands related to SharePoint Online and Microsoft 365 compliance can be highly specific to your organization's tenant setup. Consulting experts can prevent accidental compliance breaches.
Note down the affected user's email address, the specific service involved (e.g., OneDrive or SharePoint), and the exact error message received when attempting to delete files.
If you have already attempted any PowerShell commands (such as running Get-RetentionCompliancePolicy), keep a record of the exact script used and its output.
Navigate to the official Microsoft SharePoint Online and Microsoft 365 Q&A forum. Create a new thread detailing the user, service, error, and any holds you suspect are active to get targeted PowerShell guidance.

Check the Microsoft Purview Compliance Portal
Administrators can manually check for retention policies applied to specific users through the Microsoft Purview portal without using PowerShell.
Switch to WPS Office for a Hassle-Free Document Experience
Managing enterprise retention policies and complex PowerShell modules in Microsoft 365 can be time-consuming. If you are looking for a straightforward, lightweight, and highly compatible office suite for local document creation and management without heavy administrative overhead, WPS Office is the perfect alternative.

Frequently Asked Questions
Why can't I delete files from my Microsoft 365 OneDrive?
If your organization has applied a retention policy or an eDiscovery hold to your account, files are preserved for compliance reasons. This prevents permanent deletion until the mandatory retention period expires.
Which PowerShell module is needed to check Microsoft 365 retention policies?
Administrators typically use the Exchange Online PowerShell module or the Security & Compliance PowerShell module to securely connect to the tenant and run cmdlets like Get-RetentionCompliancePolicy.
Can an end-user remove a retention policy affecting their account?
No, retention policies and litigation holds are managed at the organizational level. Only an IT administrator with the appropriate compliance roles can modify, exclude a user, or remove these policies.
What happens when a file on hold is deleted by a user?
In Microsoft 365, if a user attempts to delete a file that is governed by a retention policy, the file is moved to a hidden Preservation Hold library where it is kept securely until the retention period ends.




