$url="http://sps2010dev2:101/test3"

# Грузим скриптлет SharePoint
Write-Host "SharePoint snapin loading ..."
if(!(Get-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction:SilentlyContinue))
{
    Add-PSSnapin Microsoft.SharePoint.Powershell
}
Write-Host "---------------------------------------------------------------"

# Place for Write-Progress block
Write-Host " "

$web = Get-SPWeb $url -ErrorAction:SilentlyContinue
if($web -ne $null)
{
    # Удаляем узел
    Write-Host "SharePoint web deleting ..."
    Remove-SPWeb –Identity $url –Confirm:$False
    Write-Host "---------------------------------------------------------------"
}

Write-Host "Operation complited."
Write-Host "Press any key ..."
$null = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")