Scenario: Delete\Remove Site Columns using SharePoint Object model code
Solution: Add a feature receiver and in FeatureUninstalling write below code
SPWeb myWeb = properties.Feature.Parent as SPWeb;
myWeb.Fields["{GUID of Site column to delete}"].Delete();
No comments:
Post a Comment