Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Uninstall dependent BC apps
# Change searchApp to the name of your app, the script will uninstall any dependent apps
$searchApp = 'Customer Additional Fields'
$apps = get-navappinfo uat
foreach ($app in $apps)
$appdetail = Get-navappinfo uat -name $app.Name
foreach ($dependency in $appdetail.Dependencies) {
if ($dependency.Name -eq $searchApp) {
Write-Host 'Uninstalling ' $appDetail.Name ' ' $appDetail.Version
Uninstall-Navapp uat -name $appDetail.Name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.