Delete files from preservation hold Library

Copper Contributor

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

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-wo...