Pipelines/Steps/Install/OnPrem/Sitecore/Uninstall/Delete-Services.ps1

$ErrorActionPreference = "Stop"

Write-Output "Deleting Windows Services..."
$hostName = $SAFConfiguration.xConnect.hostName
if(![string]::IsNullOrEmpty($hostName)){
    $services = @("$($hostName)-IndexWorker", "$($hostName)-MarketingAutomationService", "$($hostName)-ProcessingEngineService")
    DeleteWindowsServices -Services $services
}
Write-Output "Deleting Windows Service done"