Forum Discussion
donElaio
Jul 07, 2022Copper Contributor
Delete files from preservation hold Library
hi!
I have a SharePoint Online Site Collection with a Preservation hold library.
I want to delete all files from the library that have the term "Projectx" in the filename.
I have tried with the PnP PowerShell module.
Unfortunately without taking place.
It would be nice if someone can support me.
Thanks!
1 Reply
Sort By
- Gabriel Edo. SibajaCopper Contributor
Hi donElaio
If you are having this library is because you have a retention policy. All of this data is required and cannot be deleted.
You can see more information about this here: https://docs.microsoft.com/en-us/microsoft-365/compliance/retention-policies-sharepoint?view=o365-worldwide#how-retention-works-for-sharepoint-and-onedrive