Home

Unable to Delete Content Type

%3CLINGO-SUB%20id%3D%22lingo-sub-734360%22%20slang%3D%22en-US%22%3EUnable%20to%20Delete%20Content%20Type%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-734360%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EWe%20have%20a%20content%20type%20that%20was%20incorrectly%20created%20on%20one%20of%20our%20site%20collections.%20100%20days%20ago%2C%20I%20deleted%20all%20instances%20of%20the%20content%20type%20in%20site%20collection%20and%20subsite%20libraries.%20I%20have%20since%20verified%20that%20the%20content%20type%20or%20parent%20content%20type%20does%20not%20exist%20in%20any%20library%20on%20the%20site%20collections%20or%20any%20subsites.%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EHowever%2C%20I%20still%20receive%20an%20error%20when%20attempting%20to%20delete%20the%20content%20type%3A%20%22Another%20site%20or%20list%20is%20still%20using%20this%20content%20type.%20If%20you%20would%20still%20like%20to%20delete%20it%2C%20please%20remove%20the%20content%20type%20from%20all%20sites%20and%20lists%20and%20then%20try%20again.%22%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ECorrelation%20ID%3A%204750ec9e-4097-8000-1088-713547a0366c%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EDate%20and%20Time%3A%207%2F2%2F2019%206%3A20%3A04%20AM%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ETaking%20a%20second%20pass%2C%20I%20identified%20that%20a%20content%20type%20was%20using%20this%20as%20a%20parent%20content%20type%2C%20so%20I%20removed%20the%20content%20type%20and%20modified%20all%20files%20with%20that%20content%20type%20to%20a%20new%20content%20type%20with%20the%20same%20columns%20and%20a%20different%20parent%20content%20type.%20I've%20also%20cleared%20the%20recycling%20bin.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI'm%20unsure%20how%20to%20identify%20where%20the%20content%20type%20is%20in%20use%2C%20as%20I've%20powershelled%20every%20library%20in%20the%20site%20and%20subsites%2C%20reviewing%20each%20Parent%20and%20Type.%20There%20doesn't%20seem%20to%20be%20a%20reliable%20way%20to%20identify%20content%20type%20usage%20in%20SharePoint%20Online.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EDoes%20anyone%20have%20advice%20on%20how%20to%20identify%20what%20reference%20continues%20to%20exist%20for%20the%20content%20type%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-734360%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-734374%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20Delete%20Content%20Type%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-734374%22%20slang%3D%22en-US%22%3EJust%20guessing%20here%2C%20but%20if%20you%20have%20any%20retention%20policies%20configured%2C%20is%20it%20possible%20that%20some%20items%20in%20a%20preservation%20hold%20library%20are%20referencing%20the%20content%20type%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-734479%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20Delete%20Content%20Type%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-734479%22%20slang%3D%22en-US%22%3ENot%20a%20bad%20idea%20-%20we%20don't%20have%20any%20retention%20policies%20defined%2C%20so%20there%20are%20no%20preservation%20hold%20libraries%20on%20the%20site%20collection%20or%20subsites.%3CBR%20%2F%3E%3CBR%20%2F%3EThat%20is%20a%20good%20point%20though%20-%20I%20wonder%20if%20the%20previous%20versions%20of%20a%20converted%20file%20being%20the%20content%20type%20might%20be%20preventing%20deletion.%20I'm%20unsure%20how%20to%20modify%20content%20types%20of%20past%20versions.%20That%20might%20be%20a%20venue%20to%20tackle.%3C%2FLINGO-BODY%3E
Highlighted
Fab_Franz
Occasional Contributor

We have a content type that was incorrectly created on one of our site collections. 100 days ago, I deleted all instances of the content type in site collection and subsite libraries. I have since verified that the content type or parent content type does not exist in any library on the site collections or any subsites.

 

However, I still receive an error when attempting to delete the content type: "Another site or list is still using this content type. If you would still like to delete it, please remove the content type from all sites and lists and then try again."

Correlation ID: 4750ec9e-4097-8000-1088-713547a0366c

Date and Time: 7/2/2019 6:20:04 AM

 

Taking a second pass, I identified that a content type was using this as a parent content type, so I removed the content type and modified all files with that content type to a new content type with the same columns and a different parent content type. I've also cleared the recycling bin and second recycling bin.

 

I'm unsure how to identify where the content type is in use, as I've powershelled every library in the site and subsites, reviewing each Parent and Type. There doesn't seem to be a reliable way to identify content type usage in SharePoint Online.

 

Does anyone have advice on how to identify what reference continues to exist for the content type?

2 Replies
Just guessing here, but if you have any retention policies configured, is it possible that some items in a preservation hold library are referencing the content type?
Not a bad idea - we don't have any retention policies defined, so there are no preservation hold libraries on the site collection or subsites.

That is a good point though - I wonder if the previous versions of a converted file being the content type might be preventing deletion. I'm unsure how to modify content types of past versions. That might be a venue to tackle.
Related Conversations