Story #5926

As a user, I can clear out downloaded files from on_demand repos

Added by over 1 year ago. Updated 12 months ago.

Start date:
Due date:
% Done:


Estimated time:
Platform Release:
Sprint Candidate:


A repository using on_demand will store artifacts locally when they are requested, but there really isn't a way to have pulp delete the locally stored files and free disk space if they are unlikely to be used again.

In the case of something like RHEL repositories, older packages and errata are unlikely to ever be needed again. You may have had dozens of kernels downloaded in your repository over the years, but going forward, only the newest one is likely to be needed. Being able to clear out on_demand content from a repository would allow the user to gain back that space.

After being 'cleaned', i would expect any content that is requested through the content app to download it as if it had never been downloaded before. Essentially the cleaning would take it back to its pre-downloaded state.


#2 Updated by ttereshc over 1 year ago

To state the obvious (just not to forget to document it): URLs from which content has been downloaded might not be valid anymore, so there is no guarantee that after a cleanup content will be available.

#3 Updated by bmbouter over 1 year ago

This feature seems very useful, but how can we handle shared content across many repos? Since Pulp de-duplicates content across repositories, removing it from the filesystem from one repo will remove it from any repo that contains that Artifact. This seems like a side effect that would make Pulp feel unreliable.

My thinking on it is that we can't think of this as a repository-level operation and accept "side effects", so maybe we should revision the request as a system-level space reclamation feature? What do you think?

#4 Updated by over 1 year ago

I think a system wide space reclamation operation makes sense, and would solve our use cases.

#5 Updated by daviddavis over 1 year ago

  • Tracker changed from Issue to Story
  • Subject changed from support clearing out downloaded files from on_demand repos to As a user, I can clear out downloaded files from on_demand repos
  • % Done set to 0

#6 Updated by daviddavis over 1 year ago

  • Tags Katello-P3 added

#7 Updated by ggainey 12 months ago

  • Priority changed from Normal to Low

#8 Updated by ggainey 12 months ago

  • Tags Katello added
  • Tags deleted (Katello-P3)

Please register to edit this issue

Also available in: Atom PDF