Deleting content

Problem:
Hello! please tell me how to delete all packages that are no longer needed after deleting the repository (For example APT)? I deleted the repository, deleted the publications, deleted the distribution, deleted the remote, but the disk space did not increase…
Expected outcome:
deleted old content

Pulpcore version:
pulpcore 3.66.0
Pulp plugins installed and their versions:

Operating system - distribution and version:

Other relevant data:

Try orphans cleanup to remove content from Pulp. It only removes content that is no longer present in any repository version. REST API - Pulp Project

# cli / protection-time is how long in minutes content has to have been an
# orphan to be picked up for cleanup
pulp orphan cleanup --protection-time 0
# http
http POST /pulp/api/v3/orphans/cleanup/ orphan_protection_time=0

Thanks! It works

1 Like