You may be unable to delete a delivery group from Web studio and PowerShell SDK, failing with the error "Database could not be contacted"
None.
It is caused by the MachineConfiguration linked to the Delivery Group. If you run following PowerShell cmd let, you may see the Uid value left in the MachineConfigurationUids as shown below:
Get-BrokerDesktopgroup -Name "<Name of the Delivery Group>"
MachineConfigurationNames : {<Machine Configuartion name>}
MachineConfigurationUids : {XX}
Please use following steps to remove or delete the Delivery Group:
Get-BrokerMachineConfiguration -Uid <Value> | Remove-BrokerMachineConfiguration -DesktopGroup "<Name of the Delivery Group>"