Add-PsSnapin Microsoft.SharePoint.Powershell –ErrorAction SilentlyContinue
$web = Get-SPWeb http://globas:1010
$custom = $web.lists["Articles"]
$custom.Delete()
$custom1 = $web.lists["BasicWebparts - Gallery"]
$custom1.Delete()
$custom2 = $web.lists["ContentSlides"]
$custom2.Delete()
$custom3 = $web.lists["domphoto"]
$custom3.Delete()
$custom4 = $web.lists["dp"]
$custom4.Delete()
$custom5 = $web.lists["gallery"]
$custom5.Delete()
$custom6 = $web.lists["photo1"]
$custom6.Delete()
Write-Host "Finished! Press enter key to exit." -ForegroundColor Green
Read-Host
No comments:
Post a Comment