Forum Discussion
cannot delete files in sharepoint
cannot deletes files in sharepoint :
- sharepoint storage is full
- disabled retention policy
-no hold, cases
- Versions of this item cannot be deleted because it is on hold.
2 Replies
- cyberunitedCopper Contributor
That message nearly always means something is still holding the site, even with the policy you know about switched off. Worth checking these in order:
- The grace period. When a retention policy is turned off, deleted or has a site removed from it, SharePoint content isn't released straight away. There is a grace period of around 30 days, and until it ends the versions stay held.
- Other policies. In the Purview portal, go to Data lifecycle management, then Retention policies, and look for any policy set to "All sites" or using an adaptive scope. Org-wide policies are easy to miss.
- Retention labels. If a label was applied to the files, or set as the default for the library, the files are held by the label even with no policy. Add the "Retention label" column to the library view to check.
- eDiscovery holds. Check eDiscovery (Standard and Premium) in Purview for any case or hold that includes the site, even an old one.
- The Preservation Hold library. Add /PreservationHoldLibrary to the end of the site address. If it is large, that is where your storage has gone.
If you can use PowerShell, Get-RetentionCompliancePolicy -DistributionDetail in Security & Compliance PowerShell lists every policy and where it applies.
While you wait for the hold to lift, you can usually free space by emptying both stages of the recycle bin and reducing version limits on libraries that aren't held.
- Eric_BrooksIron Contributor
That message means SharePoint still considers the item subject to retention or a hold. Disabling one retention policy doesn’t necessarily release it immediately, and having no eDiscovery cases doesn’t rule out other retention controls.
Check these first:
- The file’s retention label: it may still apply independently of the policy you disabled, especially if the item is marked as a record.
- Other policies covering the site: ask your Purview administrator to use Policy lookup, where available, and confirm the removal has finished distributing.
- Timing: policy changes and cleanup aren’t immediate. Removing a site from a retention policy can involve a 30-day grace period.
If the site is at its quota but the tenant has spare capacity, temporarily increase the site’s storage limit. If the tenant itself is full, that won’t help; additional capacity may be needed while the retention issue is resolved.
Don’t manually delete the Preservation Hold Library. If the checks show no remaining retention or hold, open a Microsoft 365 support case with the site URL, affected item, exact error and policy-change time so they can investigate a stale hold.