I have tried all the recommendations on the web, to no avail.
I wrote a console application per these instructions: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spcontenttypecollection.delete.aspx
The "Usages.Count" is = 0. Yet, when it tries to delete the Content Type I get an Exception:
"The content type is in use."
This is a brand new (development) install. I created a test site in SP Designer, created a Content Type,then a list. Then, I removed the list, removed it from Recycle Bin and tried to remove the content type...... Ugh.
In the Site settings page, Click on “Site Content Types” under. Under Site Content Types page, Click on the name of your content type you wish to delete. Click on “Delete this site content type ” link and confirm the prompt once.
If any kind of retention policy is turned on your sites you can't delete folders and lists the have content in them until you delete all the items in the list first so copies of the content move over to the item retention library.
In addition to making sure there are no list items or documents consuming the content type, you must also ensure there are no items in the recycle bins as well, or SharePoint will not allow those content types to be deleted. Show activity on this post. One or more of the things "using" it haven't been completely deleted.
The content type was added to the available content types for your Pages Library. Go to Pages > Library ribbon > Library settings > Content types section. Click on the content type name there and then delete. That will remove it from the Pages library. Then you can go into Site Settings > Content Types and delete it there.
Re: Can't delete content types? The Content Type is not part of your List Template so you have to make sure the Content Type is available on sites where you want to create lists based on your template. What mechanism are you using to make your List Templates available? Are you using a Sandboxed Solution for this?
Then you can go into Site Settings > Content Types and delete it there. Show activity on this post. I was able to find the problem and the solution. It all started when I wanted to create a site template from a subsite.
I was frustrated by this issue until I found your comment. Excellent advice.
That's a lot of recycling! Once complete, I was able to delete the content type.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With