Office 365 security & compliance & How to delete a label that is marked as record

%3CLINGO-SUB%20id%3D%22lingo-sub-119537%22%20slang%3D%22en-US%22%3EOffice%20365%20security%20%26amp%3B%20compliance%20%26amp%3B%20How%20to%20delete%20a%20label%20that%20is%20marked%20as%20record%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-119537%22%20slang%3D%22en-US%22%3E%3CP%3EI%20created%20a%20few%20test%20labels.%20I%20am%20able%20to%20delete%20all%20labels%26nbsp%3Bexcept%20label%20that%20has%20been%20marked%20as%20a%20record.%20%26nbsp%3B%20Following%20powershell%20code%20gives%20an%20error%3A%20%26nbsp%3B%22You%20cannot%20remove%20the%20compliance%20label%20because%20the%20tag%20is%20record%20label.%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20I%20delete%20my%20label%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3ESet-ExecutionPolicy%20RemoteSigned%0A%24UserCredential%20%3D%20Get-Credential%0A%24Session%20%3D%20New-PSSession%20-ConfigurationName%20Microsoft.Exchange%20-ConnectionUri%20https%3A%2F%2Fps.compliance.protection.outlook.com%2Fpowershell-liveid%2F%20-Credential%20%24UserCredential%20-Authentication%20Basic%20-AllowRedirection%0AImport-PSSession%20%24Session%0AIRemove-ComplianceTag%20-Identity%20%22mytestlabel%22%0ARemove-PSSession%20%24Session%0A%20%3C%2FPRE%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-119537%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-379804%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20security%20%26amp%3B%20compliance%20%26amp%3B%20How%20to%20delete%20a%20label%20that%20is%20marked%20as%20record%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-379804%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F84617%22%20target%3D%22_blank%22%3E%40Eric%20Beaudry%3C%2FA%3E%26nbsp%3BThere%20is%20nothing%20in%20Microsoft's%20actual%20documentation%20(link%20provided%20above)%20that%20suggests%20the%20label%20cannot%20be%20deleted.%26nbsp%3B%20It%20talks%20specifically%20about%20items%20that%20have%20been%20declared%20as%20a%20record.%26nbsp%3B%20So%20the%20label%20should%20be%20able%20to%20be%20deleted.%26nbsp%3B%20MS%20needs%20to%20fix%20this%20ASAP.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-233779%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20security%20%26amp%3B%20compliance%20%26amp%3B%20How%20to%20delete%20a%20label%20that%20is%20marked%20as%20record%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-233779%22%20slang%3D%22en-US%22%3E%3CP%3ESo%20nice!%20So%20I%20made%20a%20typo%20and%20now%20we'll%20have%20to%20live%20with%20it%20on%20the%20tenant%20for%20ever.%20Clever%2C%20very%20clever!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-225228%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20security%20%26amp%3B%20compliance%20%26amp%3B%20How%20to%20delete%20a%20label%20that%20is%20marked%20as%20record%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-225228%22%20slang%3D%22en-US%22%3E%3CP%3EMicrosoft%26nbsp%3Breally%20needs%20to%20change%20the%20way%20they%20describe%20them%20in%20the%20actual%20settings%20as%20well.%20You%20generally%20think%20that%20%22users%22%20are%20by%20default%20not%20inclusive%20to%20the%20Administrators%20in%20terms%20of%20permissions.%20The%20assumption%20(I%20know%20%26amp%3B%24%24%20out%20of%20you%20and%20me)%20was%20that%20I%20would%20apply%20this%20label%20to%20an%20item%20and%20it%20would%20prevent%20a%20user%20from%20deleting%20the%20content%20accidentally.%20Not%20that%20the%20label%20itself%20would%20be%20prevented%20from%20deletion%20by%20the%20administrator.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20558px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F39143i232CDE531BF8E4BE%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22label-record.jpg%22%20title%3D%22label-record.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-191832%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20security%20%26amp%3B%20compliance%20%26amp%3B%20How%20to%20delete%20a%20label%20that%20is%20marked%20as%20record%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-191832%22%20slang%3D%22en-US%22%3E%3CP%3EJust%20walked%20into%20this%20trap%20myself.%3CBR%20%2F%3ENot%20impressed.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-119741%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20security%20%26amp%3B%20compliance%20%26amp%3B%20How%20to%20delete%20a%20label%20that%20is%20marked%20as%20record%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-119741%22%20slang%3D%22en-US%22%3E%3CP%3EOh!%20And%20here%20I%20was%20thinking%20%22A%20record%20can%E2%80%99t%20be%20modified%20or%20deleted%22%20would%20not%20apply%20since%20I%20am%20not%20actually%20published%20my%20label.%20No%20warning%20whatsoever.%20Microsoft%20will%20have%20many%20happy%20customers%20using%20their%20production%20tenant%20as%20a%20test-bed%20for%20labels.%26nbsp%3BIt's%20a%20good%20thing%20I%20used%20a%20test%20tenant.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-119718%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20security%20%26amp%3B%20compliance%20%26amp%3B%20How%20to%20delete%20a%20label%20that%20is%20marked%20as%20record%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-119718%22%20slang%3D%22en-US%22%3E%3CP%3EAs%20noted%20in%20the%20documentation%2C%20record%20labels%20cannot%20be%20removed%20or%20edited%3A%20%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2FOverview-of-labels-af398293-c69d-465e-a249-d74561552d30%23records%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2FOverview-of-labels-af398293-c69d-465e-a249-d74561552d30%23records%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I created a few test labels. I am able to delete all labels except label that has been marked as a record.   Following powershell code gives an error:  "You cannot remove the compliance label because the tag is record label."

 

How can I delete my label?

 

 

Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.compliance.protection.outlook.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
IRemove-ComplianceTag -Identity "mytestlabel"
Remove-PSSession $Session
 
 
6 Replies
Highlighted
Highlighted

Oh! And here I was thinking "A record can’t be modified or deleted" would not apply since I am not actually published my label. No warning whatsoever. Microsoft will have many happy customers using their production tenant as a test-bed for labels. It's a good thing I used a test tenant.

Highlighted

Just walked into this trap myself.
Not impressed.

Highlighted

Microsoft really needs to change the way they describe them in the actual settings as well. You generally think that "users" are by default not inclusive to the Administrators in terms of permissions. The assumption (I know &$$ out of you and me) was that I would apply this label to an item and it would prevent a user from deleting the content accidentally. Not that the label itself would be prevented from deletion by the administrator. 

label-record.jpg

Highlighted

So nice! So I made a typo and now we'll have to live with it on the tenant for ever. Clever, very clever!

Highlighted

@Eric Beaudry There is nothing in Microsoft's actual documentation (link provided above) that suggests the label cannot be deleted.  It talks specifically about items that have been declared as a record.  So the label should be able to be deleted.  MS needs to fix this ASAP.