Forum Discussion
How to remove/modify a sensitivity label for many SharePoint documents?
Hi Khhai,
Here are few options which you can conditioner based on the business use case and that you have Microsoft 365 E5 or Purview specific license.
Existing sensitivity labeled files at SharePoint - Utilise the Purview Data Explorer to identify the volume of sensitivity files that are currently labelled. If its a small volume than a manual approach by identifying these files and removing labels should be sufficient.
If you have large number of files than you can utilise the Microsoft Graph PowerShell SDK. These reference links should help you to build the scripts.
Remove bulk sensitivity lables using scripts
Additional reference
PnP PowerShell cmdlet reference (encrypted labels):
https://pnp.github.io/powershell/cmdlets/Unlock-PnPSensitivityLabelEncryptedFile.html
Regards, Prash
If you find the answer useful, please do not forget to like and mark it as a solution