When attempting to delete hosting connection or resources in Citrix Cloud Management Console, the following message appears:
Connection "Hosting Connection Name" cannot be deleted because it is being used by the following Objects and/or background actions:
asnp Citrix*3. Authenticate to Citrix Cloud.
Get-XdAuthentication4. Get the PS Path of the hosting connection and resource(s)
ls XDHyp:\Connections\![]()
ls XDHyp:\HostingUnits\Remove items in the following order.![]()
Remove-Item -Path "XDHyp:\HostingUnits\Resource Name"In the example, this would be: Remove-Item -Path "XDHyp:\HostingUnits\VMNW"
Remove-Item -Path "XDHyp:\Connections\Hosting Connection Name"In the example, this would be: Remove-Item -Path "XDHyp:\Connections\DublinPVS"
Remove-BrokerHypervisorConnection -Name "Hosting Connection Name"In the example, this would be: Remove-BrokerHypervisorConnection -Name "DublinPVS"