Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to delete SharePoint 2010 ContentType "Contenty type in use."

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.

like image 878
Shayne Avatar asked Jun 21 '11 14:06

Shayne


People also ask

How do I remove content type in powershell?

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.

Why I can't delete a list from SharePoint?

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.

Why can't I delete a content type in SharePoint?

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.

How to delete a content type in Pages Library?

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.

Why can't I delete content types from my list template?

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?

How to delete content types from a subsite?

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.


1 Answers

I was frustrated by this issue until I found your comment. Excellent advice.

  1. Delete from site recycle bin.
  2. Delete from Site Collection > Site Settings > Site Collection Administration > Recycle Bin.
  3. Delete from End User Recycle Bin Items.
  4. Delete from "Deleted From End User Recycle Bin."

That's a lot of recycling! Once complete, I was able to delete the content type.

like image 86
Erik Madsen Avatar answered Sep 27 '22 15:09

Erik Madsen