You try to delete a file from your OneDrive for Business account. The file disappears for a moment, then reappears. Or you see an error saying the item cannot be deleted because it is subject to a retention policy. This happens because a Microsoft 365 retention policy or a label with retention rules has been applied to the file, the folder, or the entire OneDrive site. The policy prevents permanent deletion and keeps a copy in a preservation hold library or the Recoverable Items folder. This article explains how retention policies work in OneDrive, why they block deletion, and the exact steps an administrator must take to release the file so a user can delete it.
Only a Microsoft 365 global admin, compliance admin, or records management admin can modify retention policies. End users cannot override these policies. If you are an end user, you need to contact your IT department with the file name and path. If you are an admin, the fix involves checking the policy scope, modifying the retention period, or using Content Search to locate and delete the retained copy.
Key Takeaways: Fixing OneDrive File Deletion Blocked by Retention Policy
- Microsoft 365 compliance portal > Policies > Retention: View all active retention policies that may apply to OneDrive files.
- Policy scope and location: A retention policy applied to a specific OneDrive user or site directly prevents deletion of files in that location.
- Content Search in compliance portal: Find the exact copy of the retained file in the Preservation Hold library and delete it manually after policy removal.
Why a Retention Policy Blocks OneDrive File Deletion
A retention policy in Microsoft 365 is a rule that preserves content for a set period. When a policy applies to a OneDrive site, any file created or modified during the retention period cannot be permanently deleted by any user, including the site owner. The system moves the deleted file to the Preservation Hold library, a hidden container inside the OneDrive site. The file remains there until the retention period expires or an admin removes the policy.
There are two common retention scenarios that block deletion:
1. Adaptive or static retention policy applied to the OneDrive site. An admin created a policy that includes the user’s OneDrive as a location. All files in that site inherit the retention rules. Deleting a file triggers the hold, not permanent removal.
2. Retention label applied to a specific file or folder. A user or admin assigned a label that has retention rules. Labels override site-level policies. Even if the site policy is removed, the label still blocks deletion.
The user sees the file return after refresh because OneDrive syncs the hidden copy back to the visible folder. The error message in the OneDrive sync client or web interface usually states: “This item is subject to a retention policy and cannot be deleted.”
Steps to Remove the Retention Policy and Delete the File
Only Microsoft 365 administrators can modify or remove retention policies. The following steps assume you have Global Admin or Compliance Admin permissions. Perform these steps in the order listed.
- Identify the retention policy or label
Open the Microsoft 365 compliance portal at compliance.microsoft.com. Go to Policies > Retention. Look for any policy that lists OneDrive as a location. Click each policy and check the Locations tab. Note the policy name and whether it uses adaptive or static scope. Also go to Information protection > Labels and check if any label with retention rules is published to the user. - Check the policy scope and exclusions
In the policy details, see if it applies to all OneDrive users or specific users. If the policy uses adaptive scope, check the query to confirm the affected user is included. If the policy uses static scope, note the included users or groups. You can exclude a specific user from the policy if you only need to delete one file for that user. - Modify the retention policy to exclude the user or site
To stop the policy from blocking deletion for a specific user, edit the policy. Under Locations, set OneDrive to Edit. Change the status to Exclude for the affected user. Save the policy. Wait up to 24 hours for the change to propagate. After propagation, the user can delete the file permanently from the OneDrive web interface. - If a retention label is the cause, remove the label
If a label with retention rules is applied to the file, you must remove the label first. As an admin, go to the OneDrive web interface. Navigate to the file. Click the file to select it, then click Information in the top toolbar. In the details pane, look for Retention label. Click the label name and select Remove label. Confirm the removal. The file can now be deleted. - Delete the file from the Preservation Hold library if needed
If the file was already deleted before the policy was removed, it exists in the Preservation Hold library. As an admin, use the OneDrive web interface. In the URL, add?Id=PreservationHoldLibraryto the end of the user’s OneDrive root URL. For example:https://tenant-my.sharepoint.com/personal/user_domain_com/?Id=PreservationHoldLibrary. You will see the hidden library. Locate the file and delete it permanently. This action requires the user to empty the Recycle Bin afterward.
If the File Still Cannot Be Deleted After Policy Removal
The file is still in the Preservation Hold library after policy change
If you removed the policy but the file remains in the Preservation Hold library, the retention period might still be active. Check the policy’s retention duration. If the duration is set to a specific number of days, the file will remain until that period ends. You cannot bypass the duration. The only option is to wait. If the policy was set to Retain forever, you must remove the policy entirely, not just exclude the user. Delete the policy from the compliance portal. Wait 24 hours, then delete the file from the Preservation Hold library.
Another retention policy is still active
Multiple retention policies can apply to the same OneDrive site. After removing one policy, another may still block deletion. In the compliance portal, go to Policies > Retention and review all policies. Check each one’s locations. Also go to Information protection > Labels and check for any published labels that might still be applied. Remove or exclude the user from all relevant policies.
The user sees the file reappear in OneDrive sync
After the policy is removed, the user must delete the file from the OneDrive web interface, not from File Explorer. If the user deletes from File Explorer, the sync client may re-download the file from the Preservation Hold library if the hold was not fully cleared. Instruct the user to delete the file from the OneDrive website at onedrive.live.com. Then empty the Recycle Bin on the web. After that, the sync client will reflect the permanent deletion.
Retention Policy vs Retention Label: Key Differences for OneDrive Deletion
| Item | Retention Policy | Retention Label |
|---|---|---|
| Scope | Applies to all content in a OneDrive site or all OneDrive sites | Applies to individual files or folders |
| Who can apply | Admin only | Admin publishes to users; users can apply manually or via auto-labeling |
| Deletion behavior | Blocks permanent deletion for all files in the scope | Blocks permanent deletion only for files with the label |
| Removal method | Edit policy to exclude user or delete the policy | Remove the label from the file directly |
| Retention duration | Set at policy creation; cannot be shortened after content is stored | Set at label creation; can be changed if label is not locked |
| Hidden copy location | Preservation Hold library | Preservation Hold library |
As an admin, you can now identify which retention policy or label is blocking a OneDrive file deletion and take the correct action to release it. Start by checking the compliance portal for active policies and labels. If the file is already in the Preservation Hold library, access that hidden library directly to delete the retained copy. For future prevention, consider using adaptive scope policies with specific exclusions for users who need to manage their own file cleanup without admin intervention. A useful tip: use the Content Search tool in the compliance portal with a query for the file name and the location set to the user’s OneDrive URL to confirm whether the file is held before you modify any policy.