Thursday, March 10, 2011

How to delete or uninstall a custom site defination in sharepoint 2010?

Introduction:
In this article we will discuss how to delete or uninstall custom site definition in SharePoint 2010. Before reading this you can check how to create a Site Definition using Visual studion 2010 in SharePoint 2010?


Details:
Follow the below steps:
Step-1
Go to the features directory of 14 hive folder and delete the folder name same with your site definition name.
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES

Step-2
Go to the directory webtemp*.xml file location and delete the corresponding webtemp_[site definition name]. The location is:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\1033\XML

Step-3
Make an IISRESET.

Then it will work. You can also check SharePoint 2010 articles.