How To Delete A View In SharePoint

Deleting a view in SharePoint is a simple process that can help you streamline your workspace and improve productivity. By removing unnecessary views, you can effectively manage your SharePoint workspace and ensure that you have only the views you need for your specific tasks.

Follow these step-by-step instructions to delete a view in SharePoint:

Step 1: Log in and Navigate to the List

First, log in to your SharePoint Online site and navigate to the list that contains the view you wish to delete. This can be done by accessing your SharePoint Online site and locating the relevant list within the site.

Step 2: Select and Modify the View

Once you have accessed the list, the next step is to select the view you want to delete and modify it. You can do this by clicking on the view and selecting the “Modify this View” option, or by going to the list settings and clicking on the respective view title. Ensure that you have selected the correct view before proceeding with the deletion.

Step 3: Delete the View

The final step is to delete the view from the SharePoint Online list or library. On the Edit view page, click on the “Delete” button to confirm the deletion. If you are unable to delete the view from the web user interface, you can use PowerShell to delete a list view in SharePoint Online. The provided PowerShell script can guide you through the process.

After deleting the view, you can verify its successful deletion by refreshing the list view page or checking the views list in the list settings. This will ensure that the unnecessary view has been removed from your SharePoint workspace, allowing you to manage your workspace more efficiently.

Step 1: Log in and Navigate to the List

Before you can delete a view in SharePoint, you need to log in to your SharePoint Online site and find the list that contains the view. Follow these steps:

  1. Open your internet browser and go to the SharePoint Online site.
  2. Enter your login credentials and click on the “Sign In” button.
  3. Once logged in, navigate to the list or library where the view is located. You can do this by clicking on the “Site Contents” link and then selecting the appropriate list from the list of available options.

Once you have successfully logged in and found the list, you are ready to proceed with deleting the view.

Table: Steps to Log in and Navigate to the List in SharePoint

Step Action
Step 1 Open your internet browser
Step 2 Go to the SharePoint Online site
Step 3 Enter your login credentials and click on “Sign In”
Step 4 Navigate to the list or library containing the view

By following these steps, you will be able to log in to your SharePoint Online site and find the list that contains the view you wish to delete.

Step 2: Select and Modify the View

After locating the list, you need to select the specific view you want to delete and make the necessary modifications. Here are the steps to follow:

  1. Click on the list name to open it. This will display the default view of the list.
  2. In the ribbon at the top of the page, click on the “Modify this View” option. This will open the “Edit view” page where you can modify the settings of the selected view.
  3. Alternatively, you can go to the list settings by clicking on the gear icon at the top right corner of the page and selecting “List settings” from the dropdown menu. Then, click on the name of the view you want to delete under the “Views” section.
  4. On the “Edit view” page, you can edit various settings of the view such as the columns displayed, sorting, and filtering options. Review the settings and make any necessary modifications.

It is important to ensure that you have selected the correct view before proceeding with the deletion. Take a moment to double-check the view name and any modifications you have made.

After you have made the necessary modifications, click on the “Delete” button at the bottom of the “Edit view” page. A prompt will appear asking you to confirm the deletion. Click “OK” to delete the view from the SharePoint Online list or library.

Now that you have deleted the view, you can verify its deletion by refreshing the list view page or checking the views list in the list settings. Ensure that the view you deleted is no longer visible in the list of views after refreshing or navigating back to the list settings.

If you are unable to delete the view from the web user interface, you can use PowerShell to delete a list view in SharePoint Online. Here is an example of the PowerShell script:

#Load SharePoint CSOM Assemblies Add-Type -Path “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll” Add-Type -Path “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll”
#Variables for Processing $SiteURL=”https://crescent.sharepoint.com” $ListName= “Projects”
$ViewName=”Active Projects”
Try { #Get Credentials to connect $Cred = Get-Credential
$Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Cred.Username, $Cred.Password)
#Setup the context $Ctx = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL)
$Ctx.Credentials = $Credentials
#Get the List $List = $Ctx.Web.Lists.GetByTitle($ListName)
#Get the view to delete $View = $List.Views.getByTitle($ViewName)
#Delete the list view $View.DeleteObject()
$Ctx.ExecuteQuery()
Write-host “View ‘$ViewName’ deleted Successfully!” -ForegroundColor Green
}

Catch {

write-host -f Red “Error Deleting List View!” $_.Exception.Message

}

By following these steps, you can easily select and modify a view in SharePoint before deleting it. Whether you choose to make modifications through the web user interface or by using PowerShell, it’s important to double-check your selections and confirm the successful deletion of the view.

Step 3: Delete the View

Once you have made the necessary modifications, you can proceed to delete the view from your SharePoint Online list or library using either the web user interface or PowerShell script.

If you are using the web user interface, follow these steps:

  1. On the Edit view page, click on the “Delete” button.
  2. Confirm the prompt to delete the view from the SharePoint Online list or library.

If you prefer to use PowerShell to delete a list view in SharePoint Online, you can use the following script:


#Load SharePoint CSOM Assemblies
Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"

#Variables for Processing
$SiteURL="https://crescent.sharepoint.com"
$ListName= "Projects"
$ViewName="Active Projects"

Try {
#Get Credentials to connect
$Cred = Get-Credential
$Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Cred.Username, $Cred.Password)

#Setup the context
$Ctx = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL)
$Ctx.Credentials = $Credentials

#Get the List
$List = $Ctx.Web.Lists.GetByTitle($ListName)

#Get the view to delete
$View = $List.Views.getByTitle($ViewName)

#Delete the list view
$View.DeleteObject()
$Ctx.ExecuteQuery()

Write-host "View '$ViewName' deleted Successfully!" -ForegroundColor Green
}
Catch {
write-host -f Red "Error Deleting List View!" $_.Exception.Message
}

After deleting the view, you can verify that it has been deleted by refreshing the list view page or checking the views list in the list settings.

These are the steps to follow in order to delete a view in SharePoint. By efficiently managing your views, you can ensure a more streamlined and organized SharePoint workspace.

Meet the Author

Abdul Rahim has been working in Information Technology for over two decades. Learn how Abdul got his start as a Tech Blogger , and why he decided to start this Software blog. If you want to send Abdul a quick message, then visit his contact page here.