Remove Field from View using PowerShell in SharePoint

How to Remove Column from View in SharePoint?

  • Browse to your list or library in SharePoint >> Click on the List or Library tab from ribbon.
  • Click on the “Modify View” button under the “Manage Views” group.
  • In the Edit View page, uncheck the column(s) you wish to remove from the particular View.
    remove column from default view sharepoint powershell
  • Click OK to save.

If you want to remove field from view programmatically using PowerShell, Here you go:

SharePoint delete column from view using PowerShell:

Here is the PowerShell to remove column from view.

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue 

#Function: sharepoint powershell delete field from view
Function Remove-FieldFromView([Microsoft.SharePoint.SPList]$List, [String]$ViewName, [string]$FieldInternalName)
    #Get the view
    $View = $List.Views[$ViewName]
    If($view -eq $Null) {write-host "View doesn't exists!" -f Red; return}
    #Check if view has the specific field already!
        #Remove field from view: 
        write-host "Field Removed from the View!" -f Green
        write-host "Field Doesn't Exists in the view!" -f Red

#configuration parameters
$ListName="Project Milestones"
$ViewName="All Items"

#Get the Web and List
$Web= Get-SPWeb $WebURL
$List = $web.Lists.TryGetList($ListName)

#Call the function to remove column from view 
Remove-FieldFromView $List $ViewName $FieldName

This PowerShell script removes given field from the given view.

Remove Column from default view in SharePoint using PowerShell:

To remove the column from default view, just change the line

$View = $List.Views[$ViewName] 


$View: List.DefaultView 

Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

One thought on “Remove Field from View using PowerShell in SharePoint

  • May 13, 2019 at 2:59 PM

    This worked a treat thank you!


Leave a Reply