This is the code I use:

Add-PSSnapin "Microsoft.SharePoint.PowerShell"
$web = Get-SPWeb "Myshareointsite/Projects/Test"
$list = $web.Lists["Risks"]
$ContentType = $list.ContentTypes["Item"]
$ColumnName = "Comment"
    if($ContentType -ne $null)
 Write-host $ContentType.Fields

        Write-Host "Field removed from the Content Type!" -ForegroundColor Green
        Write-Host "Field Doesn't Exists in the Content Type!" -ForegroundColor Red
    Write-Host "Content type not found!" -ForegroundColor Red 

at the end of the execution, I get the message: Field removed from the content type but when I check in the column, the field is still there any idea of what I'm doing wrong?

Thank for your help

1 Answer 1


Try Using your code in below format:

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
$ListName="Change Request"
$ColumnName="Activity Status"
#Get Internal Name of the columns
$web = Get-SPWeb $SiteURL
#Get the list
$list = $web.Lists.TryGetList($ListName)
if($List -ne $null)
    #Get the column
    $column = $list.Fields[$ColumnName]
    if($column -ne $null)
        #Reset column properties to allow delete
        $column.Hidden = $false
        $column.ReadOnlyField = $false
        $column.AllowDeletion = $true
        #Delete the column from list
        write-host "Column has been deleted!" -f Green
        write-host "Specified column name not found!" -ForegroundColor Red


  1. How to Remove a Column from SharePoint List using PowerShell?
  2. How to find the Internal name of columns in SharePoint Online?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.