Bulk Delete Management Packs: Clearing Multiple at Once

Deleting Operations Manager management packs one at a time through the console is tedious when you’re cleaning up after a discovery wizard or removing a batch of unused monitoring packs. PowerShell handles bulk removal, with one important caveat: dependencies. The Command Get-SCOMManagementPack -Name "Contoso.*" | Remove-SCOMManagementPack This removes every management pack whose name matches the […]

Bulk Delete Multiple Operations Manager Management Packs 2020 Updated
Deleting Operations Manager management packs one at a time through the console is tedious when you’re cleaning up after a discovery wizard or removing a batch of unused monitoring packs. PowerShell handles bulk removal, with one important caveat: dependencies.

The Command

Get-SCOMManagementPack -Name "Contoso.*" | Remove-SCOMManagementPack
This removes every management pack whose name matches the pattern — adjust the -Name filter to match the packs you actually want to remove.

Handling Dependency Errors

SCOM won’t let you remove a management pack that other, still-installed management packs depend on — you’ll get an error naming the dependent pack. When removing a related group of packs (for example, a whole management pack bundle for a decommissioned application), sort by dependency and remove the ones that depend on others first, then work down to the base packs:
Get-SCOMManagementPack -Name "Contoso.*" | Sort-Object -Property {$_.References.Count} -Descending | Remove-SCOMManagementPack
If a pack still fails to remove, check the console’s dependency view (or Get-SCOMManagementPack -Name "Contoso.Base" and its dependent packs) to find what’s still referencing it.

Doing This on System Center 2025 (Updated for 2026)

The current release is System Center 2025 – Operations Manager (GA November 2024, now on Update Rollup 1 with a March 2026 hotfix). As part of a broader System Center naming standardisation, the primary documented cmdlet names have shifted to Get-SCManagementPack and Remove-SCManagementPack — but Microsoft’s own docs confirm Get-SCOMManagementPack and Remove-SCOMManagementPack (the names used above) still work unchanged as alternate names, so nothing above needs to change on an existing script. If you’re writing new automation today, it’s worth using the SC-prefixed names to match current documentation:
Get-SCManagementPack -Name "Contoso.*" | Remove-SCManagementPack
The dependency-blocking behaviour itself is unchanged — Operations Manager still refuses to remove a management pack that another installed pack references, regardless of which cmdlet name you use to request the removal.

Resources

Operations Manager Powershell Output
🛠️

Gear We Recommend

A few general tech accessories worth having alongside this.

Browse our General Tech Accessories picks on Amazon

As an Amazon Associate, TechyGeeksHome earns from qualifying purchases.


Discover more from TechyGeeksHome

Subscribe to get the latest posts sent to your email.

Andrew Armstrong

Andrew Armstrong is a UK-based IT professional with 26+ years of hands-on experience in Windows, Windows Server, SCCM/ConfigMgr, Active Directory, PowerShell, and enterprise infrastructure.

He founded TechyGeeksHome in 2010 and has published over 1,500 practical guides covering real-world IT problems and solutions. When not solving IT problems,

Andrew develops free Windows utilities including Ultimate Settings Panel, which has been downloaded over 850,000 times.