Project

Profile

Help

Story #9484

closed

delete rpm content via api or command line

Added by TiagodCC about 3 years ago. Updated almost 3 years ago.

Status:
CLOSED - DUPLICATE
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

Ticket moved to GitHub: "pulp/pulp_rpm/2303":https://github.com/pulp/pulp_rpm/issues/2303


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)

Actions #1

Updated by dkliban@redhat.com about 3 years ago

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

Updated by dkliban@redhat.com about 3 years ago

  • Project changed from Pulp to RPM Support
Actions #3

Updated by ggainey about 3 years 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.

Actions #4

Updated by ggainey about 3 years ago

  • Quarter set to Q4-2021
Actions #5

Updated by fao89 almost 3 years ago

  • Description updated (diff)
  • Status changed from NEW to CLOSED - DUPLICATE

Also available in: Atom PDF