Home > SharePoint 2010, SharePoint Advancements > Delete SharePoint 2010 Lists by using PowerShell

Delete SharePoint 2010 Lists by using PowerShell

There might come a time when you need to delete a SharePoint 2010 List and you are unable to due so because the list is corrupted and SharePoint won’t let you delete it.

To delete the list using powershell follow these steps.

1.  Log into the CA or SharePoint Sever
2.  Bring up SharePoint 2010 Management Shell (PowerShell)
3.  Type:  Get-SPWeb “portal url” | % {$_.Lists.Delete([System.Guid]$_.Lists[“name of list”].ID)}
4.  Hit Enter

This will delete the SharePoint list from your site collection.

Go back to your list views to determine that the list was indeed deleted.

  1. jag
    October 19, 2012 at 12:04 pm

    thanQ very much

  2. December 19, 2012 at 3:11 pm

    This worked for me too – Thanks !

  3. January 21, 2013 at 12:46 am

    Thank you. I tried in vain to get the list by name and then delete it $mylist.delete() but received an exception.

  4. d@g.com
    February 25, 2013 at 9:37 am

    yes it works, it deletes permenantly even from the admin recycle bin

  5. SP Adam
    July 31, 2013 at 3:36 pm

    We can delete corrupted lists using STSADM as well:
    Stsadm -o forcedeletelist -url

    Force Delete Corrupted SharePoint List using PowerShell / STSADM

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: