Forum Discussion
File Plan/Retention Labels cannot be deleted OR found in content explorer
I just got off a call with Microsoft. Nothing was solved, but we confirmed that in our Dev tenant, we only have 2 Label policies and each of these policies uses 1 File plan label. We also went into Content explorer and searched for the File plan labels and they don't show up in Content explorer. Microsoft just kept saying that the labels must be applied somewhere or else we'd be able to delete them. But if they don't show up in our policies or our explorers, how are we supposed to know where to clear them?
My teammate is looking into a Powershell script that can detect where labels are being used. YachtRock have you tried Powershell yet?
I have not tried PowerShell to locate them, in my scenario, I suspect the labels are tagged on documents within users OneDrives (that's my theory). I say this because we had a policy published out to SharePoint, OneDrive, and Exchange at one point but now were just using policies for SharePoint.
I did have a support case open previously and they suggested using an eDiscovery (Premium) case to reindex the content (advanced Indexing) in hopes to clear ghost labels and/or identify the location of the content. I couldn't figure it out right away and honestly forgot about it, might be worth a shot though. https://learn.microsoft.com/en-us/purview/ediscovery-indexing-custodian-data.
Btw, I just tried this and had no luck finding the labels that are apparently still on documents in our environment. https://sharepointmaven.com/how-to-search-content-tagged-with-a-retention-label-using-purview-content-search/
I have used Power Automate previously to locate the default retention label for SharePoint libraries before, however I haven't tried that method with OneDrive accounts and specific files, its probably a little more challenging as it would need to iterate through all users OneDrive's and then each file within their OneDrive.
Any success with the PowerShell?