Story #2396
Updated by ttereshc over 5 years ago
h3. Motivation With upcoming content migration from Task name in Pulp 2 (which can be done by content type), it becomes important to have control which orphans to delete and avoid removing content which was recently migrated but hasn't been added to any repository yet. h3. Suggestion Add @type@ parameter to the orphan cleanup endpoint to filter what to delete: 2: `pulp.server.managers.content.orphan.delete_orphans_by_type`. @$ http DELETE /pulp/api/v3/orphans/ type=file@ Task implementation in Pulp 2: https://github.com/pulp/pulp/blob/3.0-dev/server/pulp/server/managers/content/orphan.py#L201