Install/OnPrem/Solr/Uninstall/Delete-Folders.ps1
$ErrorActionPreference = "Stop" . "$PSScriptRoot\..\SolrParams.ps1" -Force Write-Output "Deleting folders started..." if (Test-Path $SolrServiceDir) { Write-Output "Deleting '$SolrServiceDir'..." Remove-Item $SolrServiceDir -Recurse -Force | Out-Null } else { Write-Warning "'$SolrServiceDir' doesn't exist..." } Write-Output "Deleting folders done." |