[Spacewalk-list] deleting packages

Jan Pazdziora jpazdziora at redhat.com
Tue Nov 16 16:03:12 UTC 2010


On Fri, Nov 05, 2010 at 04:24:26PM -0500, Ronald Parker wrote:
> 
> >> Deleting packages in 25 steps might take a long time if you have about 60'000 :/ 
> 
> > I hacked up a script which pulled the orphan package IDs out of the database 
> > directly then deleted them one by one with the removePackage API call. If you 
> > left it running overnight it did the business. Unfortunately, I cannot find it, but it 
> > didn't take very long to write so maybe you could explore this approach. 
> 
> I'm in a similar situation. Can anyone point to some documentation for the API 
> so I can look into this approach? 

On you Spacewalk, go to

	https://FQDN/rhn/apidoc/handlers/PackagesHandler.jsp#removePackage

Hope this helps,

-- 
Jan Pazdziora
Principal Software Engineer, Satellite Engineering, Red Hat




More information about the Spacewalk-list mailing list