To remove the content from the repository, run:
pulp python repository content remove --repository "$REPO_NAME" --filename "$FILENAME"
To identify which repository contains a specific file, first get the names of all Python repositories. Then, for each repository, retrieve its content PRNs and compare them with the PRN of the content you are interested in.
For example, if you are interested in the content with PRN prn:python.pythonpackagecontent:0197b042-905d-7da7-9e84-d79f398edaf0
:
# Get the names of the repositories
pulp python repository list | jq -r ".[].name"
foo1
foo2
# Check which repository contains the desired content
pulp python repository content list --repository foo1 | jq -r ".[].prn"
prn:python.pythonpackagecontent:0197b078-4053-7556-90fc-ce542f07ebc7
pulp python repository content list --repository foo2 | jq -r ".[].prn"
prn:python.pythonpackagecontent:0197b042-905d-7da7-9e84-d79f398edaf0
Since the PRN appears in foo2
, that is the repository you are looking for.
If you have more questions, I glad to help!