Forum Discussion
Deletion files/folders with retention labels in a specific SharePoint Online site
Hi VasilMichev - thanks for fast reply.
That was part of my question - how to remove them?
I mean easily? I was going to each subfolder and selecting each file(s) and setting the Labels to 'None'.
But this requires lots of that action as there are lots of subfolders and subfolders etc.
Is there a Powershell I can use to select the url - i.e. https://tenant.com/sites/mysite/Documents/folder/ and the run a command towards that folder to set labels on all items within it to a label 'None'?
If I select the folder and set the label to 'None', then the files in the subfolders retain the label and does not allow me to delete..
There is not much on that topic on internet, i'm surprised...
Regards,
Roumen
Hi RSWork ,
If the labels have not been set individually on files then you can change the label at the highest folder you want to delete and the label will cascade. I haven't yet had to remove labels via powershell sorry.
In your case it may either take a bit of time to update or the labels have been set individually.
- Lily_AshikovaMay 21, 2021Copper Contributor
Andrew Hodges Updating the folder retention label did not affect the files in it and they are still having a retention label that is preventing deletion. Is there any other way to remove the retention label in bulk? Thanks
- mtbaker28Sep 30, 2021Brass ContributorWe also have a need for bulk or automated removal