Scenario :
SharePoint has the flexibility of storing data based on the content type, where the list can be associated with more than one content type. It means, a list can be used to store different templates of data. This is the main reason we leverage content type with SharePoint. Having said that, when you try to delete the content type, many of you might encountered an error reported by SharePoint, “The content type ‘XXXX’ is part of an application feature” and SP does not allows you to delete the content type. Scripting conquer the SharePoint UI way of deletion..? Apparently no, the same error is reported when you try to use the PowerShell to delete the content type.
Reason :
Due to a flag set internally into the content database, the content type is allowed to delete neither through UI nor programmatically.
Steps To Delete :
1. In-order to delete the content type you should first remove any references with list instances. This can be inspected by the following script.
2. You need to delete all lists which are reported by above script.
3. Interestingly, though you delete those lists, the content type still reference to the deleted lists instances, which is residing inside the recycle bin. This has to be delete too.
You have to make sure that you delete the list instance from both
· End user Recycle bin
· Deleted from end user recycle bin
4. Once you have cleared the all the evidence of the list instance, you can go to the relevant content type feature, and de-activate it.
5. Now your content type is automatically get deleted by feature de-activation process
Solution :
You should always remove the content type connection as I have shown you and then de-activate the content type feature to remove it.