$Guid = “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”

$s = Get-SPServiceInstance $Guid

$s.delete()