To delete the column specially if you have publishing column then you can use following PowerShell.
$web = Get-SPWeb -identity http://portal/site
$list = $web.Lists[“Name of List”]
$column = $list.Fields[“Name of Column”]
$column.Hidden = $false
$column.ReadOnlyField = $false
$column.Allowdeletion = $true
$column.Sealed = $false
$column.Delete()
$list.Update()
Thank you very
much
Fahadullah Karimi
SharePoint Specialist
Remove *.debug.js from master page in SharePoint 2013 | SharePoint Build Version Using PowerShell |
No comments:
Post a Comment