Skip to content

Cleaning up old content / removing from distribution points

Featured Replies

I need to clean up some old/outdated content and had a few questions on best practices.

 

Right now I'm working on Software Updates and their Deployment Packages. Our normal monthly procedure creates a Software Update Group with required updates, as well as a Deployment Package. So for 2015, we have 12 Software Update Groups and 12 associated Deployment Packages. I'm currently rolling all of the 2015 updates into one Group and one Deployment Package, and need to remove not only all of the Deployment Packages, but I want to make sure that it also removes the content from the associated Distribution Points.

 

What's the best practice way to do this? If I just delete the deployment packages from the console, will it remove the content? (I doubt it, since you can go into the Properties of the deployment packages and remove the content from the 'Content Locations' tab. But of course you can only remove them one at a time in the GUI and that would take WAY too long for 12 Deployment Packages that are on 13 distribution points.)

 

the Remove-CMContentDistribution or Remove-CMSoftwareUpdateDeploymentPackage cmdlets seem promising, but we don't have a test environment, and I'm not yet a Powershell guru, so I want to make sure that I know what I'm doing before just trying them out in prod.

 

Can anyone provide me with some -Examples of their proper usage (or a better powershell way to clean up outdated content from DPs)?

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.