I've never used this, but it should work and just uses the defined methods in the SDK (to my knowledge): http://www.myitforum.com/articles/42/view.asp?id=8904
Alternatively, you could script it yourself using the SDK.
This tool is good. but there is no option to remove the packages:(
The SMS 2003 Recipes book has a sample vbs script that can be used to delete a package (this will delete the package object completely as well as removing it from DPs), you can view the example in Google books http://books.google.co.uk/books?id=14hWq8NNggwC&lpg=PA127&ots=KezEtp8mIN&dq=sms%202003%20recipes%20packages&pg=PA128#v=onepage&q=sms%202003%20recipes%20packages&f=false (Example 4-4). This still works for the 2007 product and could easily be adapted to accept multiple package IDs e.g. (I have commented out the actual delete command for safety):
If WScript.Arguments.Count < 1 Then
WScript.Echo "Usage:"
WScript.Echo " cscript DeletePackage.vbs PackageID [PackageID]..."
WScript.Quit
End If
strSMSServer = <SMSServer>
Set objLoc = CreateObject("WbemScripting.SWbemLocator")
Set objSMS = objLoc.ConnectServer(strSMSServer, "root\sms")
Set Results = objSMS.ExecQuery _
("SELECT * FROM SMS_ProviderLocation WHERE ProviderForLocalSite = true")
For Each Loc In Results
If Loc.ProviderForLocalSite = True Then
Set objSMS = objLoc.ConnectServer(Loc.machine, "root\sms\site_" & _
Loc.SiteCode)
strSMSSiteCode = Loc.Sitecode
End If
Next
'Remove Package(s)
For Each packageID in WScript.Arguments
Set objPackage = GetObject("WinMgmts:\\" & strSMSServer & _
"\root\SMS\site_"& strSMSSiteCode & _
":SMS_Package.PackageID='" & packageID & "'")
'objPackage.Delete_
WScript.Echo "Deleted " & packageID
Next
- Marked as answer by Eric MattoonMicrosoft employee, Moderator Friday, March 22, 2013 5:52 PM
Got a tool for this one..
here you go.
Download link:-http://www.myitforum.com/articles/42/view.asp?id=8904
Steps:-
- Install and launch the app. from startall programs Microsoft system centreConfigMgr
DP utility
- Connect to your central site server
- After some time the below window will appear, browse the DP and uncheck the packages which need to be removed and click on update


