Project

Profile

Help

Story #9484

delete rpm content via api or command line

Added by TiagodCC 23 days ago. Updated 8 days ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation
Sprint:
Quarter:
Q4-2021

Description

I use specific custom repositories that aren't synced to publish packages from third party software vendors.

Because of this, I wanted to ask how I can delete existing RPM packages (content). When I try to remove the Artifact, I get the following error: "The Artifact cannot be deleted because it is associated with Content." However, I cannot remove the package: "Method "DELETE" not allowed."

I unfortunately didn't find anything in the documentation about this.

Thanks in advance for the answer.

Translated with www.DeepL.com/Translator (free version)

History

#1 Updated by dkliban@redhat.com 22 days ago

  • Tracker changed from Issue to Story
  • % Done set to 0
  • Severity deleted (1. Low)
  • Triaged deleted (No)
  • Tags Documentation added

#2 Updated by dkliban@redhat.com 22 days ago

  • Project changed from Pulp to RPM Support

#3 Updated by ggainey 22 days ago

Hi there!

There are a couple of Pulp-architectural issues involved here. First, repository-versions are immutable (so you can get back to any version and have all the content available). This means that you can't remove content as long as there still exists a repo-version that "knows about it".

Second, Pulp deduplicates content. Artifacts can be shared across repositories - which means the repo you're looking at, may not be the only one hose repo-versions still point to the content.

So - the way content gets removed "from Pulp", is via the orphan cleanup task. This task runs periodically, looking for Artifacts that don't "belong to" any repository-versions, and haven't been touched in a while, and removes them.

To remove content - you'd use the RPM RepositoryVersion DELETE API or the CLI command pulp rpm repository version destroy followed by pulp orphan cleanup.

We def need docs on this full workflow, we'll keep this report open to indicate that there's docs-work to do here.

#4 Updated by ggainey 20 days ago

  • Quarter set to Q4-2021

Please register to edit this issue

Also available in: Atom PDF