24 September 2014

Delete SharePoint List by force with PowerShell

if cannot delete your SharePoint list

try this PowerShell code - it will delete your list


$web = Get-SPWeb http://www.mysite.com

$guid = [Guid]"a07a5c37-0f7c-423d-846a-e9e525f7a8b7"
$list = $web.Lists[$guid]
$list.AllowDeletion = $true
$list.Update()
$list.Delete()
$web.Dispose()

Your,
Roi