Forum Discussion
Can't delete content types?
- Jul 30, 2019I ran into this error quite a lot and every time I forgot to empty my Recycle Bin, especially forgot to look at the "Deleted from end user Recycle Bin" view which is only available to you if you are a Site Collection Administrator...
You said you're on you Content Type Hub. Have you published the Content Types in question? If so, you could try to Unpublish them first (in my experience this shouldn't really matter though and I just tried on the site I've helped you with earlier...)
Yes. And I attempt to find anything relate these content type. But I don't know what I'm missing.
You said you're on you Content Type Hub. Have you published the Content Types in question? If so, you could try to Unpublish them first (in my experience this shouldn't really matter though and I just tried on the site I've helped you with earlier...)
- ca_remJul 30, 2019Brass Contributor
I got it. Thank you. I can't see the second Stage of Recycle Bin as you said. Sr.
Thank you very much.
But relate to this topic, I wonder how we can find:
- Lists relating to a specific Content-Type, so we can easily find these Lists and remove them before we remove the Content-Type
- Content-Types relating to a specific Column, so we can easily find these Content-Type and remove them before we can remove the Column
- paulpaschaJul 30, 2019Bronze Contributor
I totally agree. There used to be ways to discover this using server-side API's but these are not available in SharePoint Online...
- ca_remJul 30, 2019Brass Contributor
Yes, I have published these content types before.
But I unpublish and remove all the other content types easily, but only 4 content types I use in List templates that can't be deleted.
By the way, I have a question. When you upload the list template to another site, can this site receive the content Type go with the template automatically? (the content type haven't existed on the site before)
- paulpaschaJul 30, 2019Bronze ContributorThe 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? If so, you'll typically also include the Content Type definition in this solution.- ca_remJul 30, 2019Brass Contributor
What mechanism are you using to make your List Templates available? Are you using a Sandboxed Solution for this? If so, you'll typically also include the Content Type definition in this solution.
I only use Saving list template in List Setting. And import and export these template via Web Designer Galleries -> List Template, that is the only way I know until now.
Sandbox Solution is the method using code, right? If you have an official blog or topic about this, please share with me.
paulpascha wrote:
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.You mean, if I don't have the content type already on my site, I can't Upload or Using these Templates?