Skip to content
How to Remove ConfigMgr Package from Multiple DPs at the Same Time | SCCM | Configuration Manager Endpoint

How to Remove ConfigMgr Package from Multiple DPs at the Same Time | SCCM | Configuration Manager Endpoint

Written By Anoop C Nair
Last Updated August 21, 2024
Posted In SCCM
SHARE

Let’s look at the option(s) to Remove ConfigMgr Package from Multiple DPs at the same time. We received a question in the HTMD forum that triggered this post.

Let’s find out how to remove content from multiple DPs at the same time. I’ve also shared a PowerShell option to remove content from multiple DPs.

In the previous post, I explained the best way to remove package content from a single distribution point. You might also be interested in the features of the Content Library Explorer tool.

The following posts might help you understand related issues to content distribution. Learn about Fixing ConfigMgr DP Issue RPC server is Unavailable Error Code 0x800706baFixing the SCCM SendFiles Failed 0x80070003 Error, and How to ConfigMgr Redistribute Content to the Distribution Point.

Patch My PC

Remove ConfigMgr Package Multiple DPs

The following is one of the best methods to Remove ConfigMgr Package Content from multiple DPs simultaneously. Well, you can also use PowerShell scripts to remove the content from multiple DPs simultaneously.

  • Navigate to \Monitoring\Overview\Distribution Status\Content Status
  • Use the search bar to find deployment packages such as Applications, Task Sequences, Boot Images, and Software Updates.
  • Select one particular package (CMPivot) that you want to remove.
  • Right-click and select View Check the View Status option.
How to Remove ConfigMgr Package from Multiple DPs at the Same Time | SCCM | Configuration Manager Endpoint - Fig.1
How to Remove ConfigMgr Package from Multiple DPs at the Same Time | SCCM | Configuration Manager Endpoint – Fig.1
  • Select the DPs from where you want to remove the package content.
  • Right-click on the DPs and click on Remove.
How to Remove ConfigMgr Package from Multiple DPs at the Same Time | SCCM | Configuration Manager Endpoint - Fig.2
How to Remove ConfigMgr Package from Multiple DPs at the Same Time | SCCM | Configuration Manager Endpoint – Fig.2

Click Yes on the warning window to initiate the removal of the content.

  • The action removes the distributed content with package ID ‘MEM0002C’. Do you want to continue?
How to Remove ConfigMgr Package from Multiple DPs at the Same Time | SCCM | Configuration Manager Endpoint - Fig.3
How to Remove ConfigMgr Package from Multiple DPs at the Same Time | SCCM | Configuration Manager Endpoint – Fig.3

Result

As you can see in the screenshot below, the package is removed from two DPs at the same time.

How to Remove ConfigMgr Package from Multiple DPs at the Same Time | SCCM | Configuration Manager Endpoint - Fig.4
How to Remove ConfigMgr Package from Multiple DPs at the Same Time | SCCM | Configuration Manager Endpoint – Fig.4

DistMgr.log – Package Content Removal Process

You can refer to the DistMgr.log (@ primary & secondary server ) snippet to get an overview of the Package removal process. The following log entries might help you troubleshoot and confirm whether the removal worked for you. Let’s look at how to Remove the ConfigMgr Package from Multiple DPs simultaneously. SCCM.

NOTE: Package MEM00023 has been removed from the secondary server DP. Therefore, I have not seen any activity on the primary server DistMgr.log.

  • Started package processing thread for package ‘MEM0002C’, thread ID = 0x1698 (5784)
  • \?\C:\SMSPKGSIG\MEM0002C.1 could not be located
  • GetContentLibLocation – MEMCMSecondary.memcm.com
  • Finished GetContentLibLocation – MEMCMSecondary.memcm.com
  • GetDPUsableDrives – [“Display=\MEMCMSecondary.memcm.com\”]MSWNET:[“SMS_SITE=HS0”]\MEMCMSecondary.memcm.com\
  • Finished GetDPUsableDrives – [“Display=\MEMCMSecondary.memcm.com\”]MSWNET:[“SMS_SITE=HS0”]\MEMCMSecondary.memcm.com\
  • Start deleting package MEM0002C from server [“Display=\MEMCMSecondary.memcm.com\”]MSWNET:[“SMS_SITE=HS0”]\MEMCMSecondary.memcm.com…
  • Created DP processing thread 5496 for removal of package MEM0002C on server [“Display=\MEMCMSecondary.memcm.com\”]MSWNET:[“SMS_SITE=HS0″]\MEMCMSecondary.memcm.com\
  • Waiting for all DP threads to complete for package MEM0002C processing thread.
  • Attempting to remove package MEM0002C from distribution point [“Display=\MEMCMSecondary.memcm.com\”]MSWNET:[“SMS_SITE=HS0″]\MEMCMSecondary.memcm.com\
  • [“Display=\MEMCMSecondary.memcm.com\”]MSWNET:[“SMS_SITE=HS0”]\MEMCMSecondary.memcm.com\ is NOT a Pull DP
  • Successfully removed the package MEM0002C from server [“Display=\MEMCMSecondary.memcm.com\”]MSWNET:[“SMS_SITE=HS0”]\MEMCMSecondary.memcm.com\
  • CStateMsgReporter::DeliverMessages – Created state message file: C:\Program Files\Microsoft Configuration Manager\inboxes\auth\statesys.box\incoming\xam513ne.SMX
  • Successfully sent state change notification 8ACCAE01-5879-4FCD-B988-C1CD3005B698
  • Exiting package processing thread for package MEM0002C.
How to Remove ConfigMgr Package from Multiple DPs at the Same Time | SCCM | Configuration Manager Endpoint - Fig.5
How to Remove ConfigMgr Package from Multiple DPs at the Same Time | SCCM | Configuration Manager Endpoint – Fig.5

Check the SCCM log files related to DPs. The PkgXferMgr.log file is your best friend for remote DP distribution/package replication issues.

LogsDescription
distmgr.logPackage Application distribution process
PkgXferMgr.logRecords the actions of the SMS_Executive component that is responsible for sending content from an SCCM primary site to a remote DP.
How to Remove ConfigMgr Package from Multiple DPs at the Same Time | SCCM | Configuration Manager Endpoint -Table.1

NOTE! – The PkgXferMgr.log is the log file that you need to check to understand how removal works for remote DPs.

PowerShell Script to Remove Package from Multiple DPs

Following the PowerShell script (command) helps to remove SCCM package content from Distribution Points. Ankit shared the following lines of script in the HTMD forum.

  • Make sure you have DP names (FQDN) listed inside DPList.csv.
  • You might need to execute the policy as per your security requirements. For my lab, I used -> Set-ExecutionPolicy Unrestricted
  • Connect via Windows PowerShell ISE from the admin console.
How to Remove ConfigMgr Package from Multiple DPs at the Same Time | SCCM | Configuration Manager Endpoint - Fig.6
How to Remove ConfigMgr Package from Multiple DPs at the Same Time | SCCM | Configuration Manager Endpoint – Fig.6
  • Run the command from the below section to remove the content from multiple DPs simultaneously.
PS MEM:> $csv = import-csv F:\Sources\APPList\DPList.csv
 foreach ($DPName in $csv.DPName) {
 Remove-CMContentDistribution -ApplicationName 'CMPivot' -DistributionPointName $DPName -verbose -force
 }
How to Remove ConfigMgr Package from Multiple DPs at the Same Time | SCCM | Configuration Manager Endpoint - Fig.7
How to Remove ConfigMgr Package from Multiple DPs at the Same Time | SCCM | Configuration Manager Endpoint – Fig.7

Log Entries of the above command for your reference:

VERBOSE: Start: Execution of WQL query: SELECT * FROM SMS_ApplicationLatest WHERE LocalizedDisplayName IN ( 'CMPivot' 
)

VERBOSE: Finish: Execution of WQL query: SELECT * FROM SMS_ApplicationLatest WHERE LocalizedDisplayName IN ( 'CMPivot'
). Processed 1 results in 00:00:00.0030781.
VERBOSE: Performing the operation "Remove" on target "ContentDistribution: LocalizedDisplayName="CMPivot"".
VERBOSE: Start: Execution of WQL query: SELECT * FROM SMS_PackageContentServerInfo WHERE ObjectID IN ( 'SCOPEID_107428
5A-82C7-474F-B242-1EE20F8C3CE5/APPLICATION_FE609216-3501-432E-B1F9-027B4E8B2766' )
VERBOSE: Finish: Execution of WQL query: SELECT * FROM SMS_PackageContentServerInfo WHERE ObjectID IN ( 'SCOPEID_10742
85A-82C7-474F-B242-1EE20F8C3CE5/APPLICATION_FE609216-3501-432E-B1F9-027B4E8B2766' ). Processed 2 results in 00:00:00.0
257211.
VERBOSE: Start: Execution of WQL query: SELECT COUNT() FROM SMS_DeploymentType WHERE AppModelName = "ScopeId_1074285A -82C7-474F-B242-1EE20F8C3CE5/Application_fe609216-3501-432e-b1f9-027b4e8b2766" AND Technology IN ("iOS", "Windows8App" , "WinPhone8", "Android", "MobileMsi") VERBOSE: Start: Execution of WQL query: SELECT COUNT() FROM SMS_DeploymentType WHERE AppModelName = "ScopeId_1074285A
-82C7-474F-B242-1EE20F8C3CE5/Application_fe609216-3501-432e-b1f9-027b4e8b2766" AND Technology NOT IN ("iOS", "WinPhone
8", "Android")
VERBOSE: Start: Execution of WQL query: SELECT * FROM SMS_DistributionPointInfo WHERE Name IN ( 'MEMCMSecondary.memcm.
com' )

VERBOSE: Finish: Execution of WQL query: SELECT * FROM SMS_DistributionPointInfo WHERE Name IN ( 'MEMCMSecondary.memcm
.com' ). Processed 1 results in 00:00:00.0001469.
VERBOSE: Start: Execution of WQL query: Select pkg.* From SMS_ContentPackage As pkg Inner Join SMS_CIContentPackage As
con On pkg.PackageID = con.PackageID Where con.CI_ID In ('16784472') Or con.CI_ID in (Select ToApplicationCIID From S
MS_AppDependenceRelation_Flat Where FromApplicationCIID In ('16784472'))
VERBOSE: Finish: Execution of WQL query: Select pkg.* From SMS_ContentPackage As pkg Inner Join SMS_CIContentPackage A
s con On pkg.PackageID = con.PackageID Where con.CI_ID In ('16784472') Or con.CI_ID in (Select ToApplicationCIID From
SMS_AppDependenceRelation_Flat Where FromApplicationCIID In ('16784472')). Processed 1 results in 00:00:00.2005933.
VERBOSE: Start: Execution of WQL query: Select * From SMS_DistributionPoint Where PackageID In ('MEM00023') And Server
NALPath = '["Display=\\MEMCMSecondary.memcm.com\"]MSWNET:["SMS_SITE=HS0"]\\MEMCMSecondary.memcm.com\'
VERBOSE: Delete() object 'SMS_DistributionPoint.PackageID="MEM00023",ServerNALPath="[\"Display=\\MEMCMSecondary.memc
m.com\\"]MSWNET:[\"SMS_SITE=HS0\"]\\MEMCMSecondary.memcm.com\",SiteCode="HS0"'
VERBOSE: Finish: Execution of WQL query: Select * From SMS_DistributionPoint Where PackageID In ('MEM00023') And Serve
rNALPath = '["Display=\\MEMCMSecondary.memcm.com\"]MSWNET:["SMS_SITE=HS0"]\\MEMCMSecondary.memcm.com\'. Processe
d 1 results in 00:00:00.1381848.

VERBOSE: Start: Execution of WQL query: SELECT * FROM SMS_ApplicationLatest WHERE LocalizedDisplayName IN ( 'CMPivot'
)
VERBOSE: Finish: Execution of WQL query: SELECT * FROM SMS_ApplicationLatest WHERE LocalizedDisplayName IN ( 'CMPivot'
). Processed 1 results in 00:00:00.0000604.
VERBOSE: Performing the operation "Remove" on target "ContentDistribution: LocalizedDisplayName="CMPivot"".
VERBOSE: Start: Execution of WQL query: SELECT * FROM SMS_PackageContentServerInfo WHERE ObjectID IN ( 'SCOPEID_107428
5A-82C7-474F-B242-1EE20F8C3CE5/APPLICATION_FE609216-3501-432E-B1F9-027B4E8B2766' )
VERBOSE: Finish: Execution of WQL query: SELECT * FROM SMS_PackageContentServerInfo WHERE ObjectID IN ( 'SCOPEID_10742
85A-82C7-474F-B242-1EE20F8C3CE5/APPLICATION_FE609216-3501-432E-B1F9-027B4E8B2766' ). Processed 1 results in 00:00:00.0
001185.
VERBOSE: Start: Execution of WQL query: SELECT COUNT() FROM SMS_DeploymentType WHERE AppModelName = "ScopeId_1074285A -82C7-474F-B242-1EE20F8C3CE5/Application_fe609216-3501-432e-b1f9-027b4e8b2766" AND Technology IN ("iOS", "Windows8App" , "WinPhone8", "Android", "MobileMsi") VERBOSE: Start: Execution of WQL query: SELECT COUNT() FROM SMS_DeploymentType WHERE AppModelName = "ScopeId_1074285A
-82C7-474F-B242-1EE20F8C3CE5/Application_fe609216-3501-432e-b1f9-027b4e8b2766" AND Technology NOT IN ("iOS", "WinPhone
8", "Android")
VERBOSE: Start: Execution of WQL query: SELECT * FROM SMS_DistributionPointInfo WHERE Name IN ( 'CMMEMCM.memcm.com' )
VERBOSE: Finish: Execution of WQL query: SELECT * FROM SMS_DistributionPointInfo WHERE Name IN ( 'CMMEMCM.memcm.com' )
. Processed 1 results in 00:00:00.0001227.
VERBOSE: Start: Execution of WQL query: Select pkg.* From SMS_ContentPackage As pkg Inner Join SMS_CIContentPackage As
con On pkg.PackageID = con.PackageID Where con.CI_ID In ('16784472') Or con.CI_ID in (Select ToApplicationCIID From S
MS_AppDependenceRelation_Flat Where FromApplicationCIID In ('16784472'))
VERBOSE: Finish: Execution of WQL query: Select pkg.* From SMS_ContentPackage As pkg Inner Join SMS_CIContentPackage A
s con On pkg.PackageID = con.PackageID Where con.CI_ID In ('16784472') Or con.CI_ID in (Select ToApplicationCIID From
SMS_AppDependenceRelation_Flat Where FromApplicationCIID In ('16784472')). Processed 1 results in 00:00:00.0987883.
VERBOSE: Start: Execution of WQL query: Select * From SMS_DistributionPoint Where PackageID In ('MEM00023') And Server
NALPath = '["Display=\\CMMEMCM.memcm.com\"]MSWNET:["SMS_SITE=MEM"]\\CMMEMCM.memcm.com\'
VERBOSE: Delete() object 'SMS_DistributionPoint.PackageID="MEM00023",ServerNALPath="[\"Display=\\CMMEMCM.memcm.com\
\"]MSWNET:[\"SMS_SITE=MEM\"]\\CMMEMCM.memcm.com\",SiteCode="MEM"'
VERBOSE: Finish: Execution of WQL query: Select * From SMS_DistributionPoint Where PackageID In ('MEM00023') And Serve
rNALPath = '["Display=\\CMMEMCM.memcm.com\"]MSWNET:["SMS_SITE=MEM"]\\CMMEMCM.memcm.com\'. Processed 1 results in
00:00:00.0691612.

Resources

We are on WhatsApp now. To get the latest step-by-step guides, news, and updates, Join our Channel. Click here – HTMD WhatsApp

Author

Anoop C Nair has been Microsoft MVP for 10 consecutive years from 2015 onwards. He is a Workplace Solution Architect with more than 22+ years of experience in Workplace technologies. He is a Blogger, Speaker, and Local User Group Community leader. His primary focus is on Device Management technologies like SCCM and Intune. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security, Career, etc.

Written by

Anoop C Nair is Workplace Technology solution architect with 25+ years of experience in global enterprise organizations such as JP Morgan, Capgemini, etc. Microsoft Certified Trainer. Microsoft MVP from 2015 onwards for consecutive 11+ years! He also conducts Intune and modern workplace tech training for enterprise organizations. He is Blogger, Speaker, and Founder of HTMD Community and HTMD Conference. His main focus is on Device Management technologies like Intune, Windows, Cloud PC. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security.

Discussion · 1 comment

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws

Key Takeaways Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws! In the July 2026 Patch, Microsoft introduced new features designed to improve the overall Windows experience. The update adds enhancements to Windows Update for more flexible update management and introduces Point-in-Time Restore, providing an additional recovery option for […]

AC Anoop C Nair 9 min read
Intune

2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws

Key Takeaways 2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws! The June 2026 Windows 11 Patch Tuesday update brings several improvements to File Explorer. It adds support for additional archive formats, including UU, CPIO, XAR, and NuGet Packages (NUPKG). The update also preserves View and Sort preferences in […]

AC Anoop C Nair 10 min read
Intune

2026 May KB5089549 KB5087420 Windows 11 Patch | 0 Zero Day Vulnerabilities and 120 Flaws

Key Takeaways The Windows 11 May 2026 Patch KB5089549 KB5087420 Update brings important security fixes, performance improvements, and reliability enhancements across the operating system. The update introduces new features such as Xbox Mode for gaming, File Explorer improvements, enhanced input and sharing experiences, better taskbar and Windows Hello reliability, and additional enterprise management capabilities for […]

AC Anoop C Nair 8 min read
SCCM

ConfigMgr 2603 Introduces New Early Update Enrollment Process

Key Takeaways In this post we are discussing the ConfigMgr 2603 Introduces New Early Update Enrollment Process. Microsoft has officially released Configuration Manager version 2603 to the Early Update Ring, giving organizations an opportunity to test upcoming improvements before the global production rollout. The release is targeted at enterprises running ConfigMgr version 2409 or later […]

AC Anoop C Nair 3 min read