Delete SharePoint list using PowerShell

This SharePoint PowerShell tutorial, we will discuss how to delete SharePoint list using PowerShell. First, we will discuss PowerShell cmdlets to delete list using PowerShell in SharePoint 2013/2016.

We can easily delete a SharePoint list from the browser itself in SharePoint. Go to the List Settings page and then click on “Delete this list” which is under Permissions and Management. This deletes the SharePoint list from the site.

how to delete SharePoint list using PowerShell
how to delete SharePoint list using PowerShell

But if the list got corrupted then, we may not able to delete the list through a browser, We can use PowerShell to delete the SharePoint list.

Recently we got one issue where whenever we are trying to go to the settings page of the list we got Sorry, something went wrong issue. So we use PowerShell to delete the corrupted list.

Delete SharePoint 2010 List

If you are using SharePoint 2010, then you can follow the below steps to delete a SharePoint 2010 list.

Follow below steps to delete a SharePoint list:

Open the SharePoint site and navigate to the list which you want to delete. [You can also click on the List in the quick launch bar].

Then in the list page, From the Ribbon from List Tools section select List and Chose List Settings from the right-hand side as shown in the figure below:

delete list in sharepoint 2010

Then from the list settings page, Under Permissions and Management select Delete this list link as shown in the figure below:

delete list in sharepoint 2010

Once you click on Delete this list link, then it will ask you a confirmation message like below and then click on OK in the confirmation box. Then the list will get deleted.

delete list in sharepoint 2010

Delete SharePoint list using PowerShell

Below is the PowerShell command to delete a particular list in SharePoint 2013/2016.

We can write the PowerShell script inside Windows PowerShell ISE or in visual studio code.

$web = Get-SPWeb("https://SiteURL/")
$list = $web.lists["List Name"]
$list.AllowDeletion = $true
$list.Update()
$list.Delete()

Once you run the above PowerShell script, the SharePoint list will get deleted from the site.

You may like following SharePoint tutorials:

This SharePoint tutorial, we learned how to delete a SharePoint list using PowerShell or through browser.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SPGuides.com

>