How to delete the published Application using Powershell comands

How to delete the published Application using Powershell comands

book

Article ID: CTX245623

calendar_today

Updated On:

Description

Unable to delete the Applications assigned to the delivery group through the GUI. Error : Unable to delete the application


Instructions

Please follow the following steps to remove the Applications.

1) Make sure that there are no users using the application.

2) Install PowerShell SDK on any machine in the same domain/vnet (preferably not a cloud connector) using the following: Install PowerShell SDK using the following:
     https://www.citrix.com/blogs/2016/07/01/introducing-remote-powershell-sdk-v2-for-citrix-cloud/
     http://download.apps.cloud.com/CitrixPoshSdk.exe

3) Launch the windows powershell from the local computer in an elevated mode

4) Use the following command on the remote PowerShell SDK to remove:
     asnp Citrix*
     Get-XDAuthentication

5) Login with the Citrix cloud credentials

6) Run the Command Get-brokerApplication

7) Copy the name of the application to be deleted 

8) Run the following command to delete the application
     Get-brokerApplication -name "NameOfTheApplication" | remove-brokerApplication -force

It may some times error out "Object does not exist"

9) Copy the UUID and run the following commands
     Get-brokerApplication -UUID "UUIDOfTheApplication" | remove-brokerApplication -force

 

Issue/Introduction

Unable to delete the Applications assigned to the delivery group through the GUI

Additional Information

Unable to Delete Delivery group : https://support.citrix.com/article/CTX234859