Remove-MSModuleDependency
Remove dependencies from an item (App, User, Device etc)
Syntax
Remove-MSModuleDependency -Module (String) -Id (Int32) -DependencyModule (String) -DependencyId (Int32) [-DependencyProjectIdId (Int32)]
Remove-MSModuleDependency -Module (String) -Id (Int32) -DependencyModule (String) -DependencyIds (Int32[]) [-DependencyProjectIdId (Int32)]
Examples
## Remove Application Id 2191 as a dependency of Application Id 2000
Remove-MSModuleDependency -Module Applications -Id 2000 -DependencyModule Applications -DependencyId 2191
## Remove Application Ids 2191 & 2190 as dependencies of Application Id 2000
Remove-MSModuleDependency -Module Applications -Id 2000 -DependencyModule Applications -DependencyIds @(2191, 2190)