Ensure_List_Delete

Language:
PowerShell
Keywords:
SharePoint
Code Snippet

Function Ensure_List_Delete( [Microsoft.SharePoint.SPList]$tList ) {
    if ($tList -ne $null)
    {
        Write-Output([System.String]::Format("List [{0}] : Deleting", $tList.Title))
        $tList.Delete()
    }
} # Function Ensure_List_Delete(...)


Created 2011-10-13
comments powered by Disqus
Login