Sunday, October 30, 2011

Delete List from SharePoint Portal through PowerShell

Leave a Comment
Execute following script in powershell to delete list from SharePoint Portal

PS> $site = Get-SPSite("Site URL");
        $web = $web.OpenWeb( );
        $list = $web.Lists["ListName"];
        $list.Delete( );
        $web.Update( );

Press Enter and List specified here will be deleted from SharePoint list.

Cheers !

0 comments: