Delete Document Library using SharePoint Power Shell Script


$SiteUrl = "http://SP:2010/sites/TestSite"
$web = Get-SPWeb $SiteUrl  
$library = $web.lists["Shared Documents"]
$library.AllowDeletion = $True
$library.update()
$library.Delete()

Comments

  1. very easy understood for basic level....

    ReplyDelete

Post a Comment

Popular posts from this blog

Power Shell script beginner in SharePoint 2010

Managed Metadata Configuration and Association

Difference Between Site Template and Site Definition