How to list upload_ids from the api or via rake?

Problem:
I’ve used the api to upload packages to the foreman/katello.
Now something went wrong during the upload before the import and the upload_ids did not get deleted.
Is there a way to list the upload id’s so that I can still delete them ?

Expected outcome:
list of upload_ids
Foreman and Proxy versions:
1.16
Foreman and Proxy plugin versions:
bastion 6.1.5
foreman-tasks 0.10.9
foreman_discovery 10.0.0
foreman_docker 3.2.1
foreman_remote_execution 1.3.3
katello 3.5.1.1

Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]

api calls I used:
POST /katello/api/repositories/:repository_id/content_uploads
multiple of these
PUT /katello/api/repositories/:repository_id/content_uploads/:id
< now something went wrong and I lost the upload ids before I could import and delete them >

how to find them or will they be deleted automatically ?

Rob

There is no clean way to do this today – and I think that would be a good Redmine issue to file so we can provide this better.

What you can do is find the upload task in Monitor > Tasks (e.g. “Upload into repository”) and go to the Dynflow Console. In the running steps ImportUpload data you can find the upload id. If that task does not exist, I think the only recourse is to talk to Pulp directly with pulp-admin or the API to find existing content uploads unfortunately.

Got any tips on where to start looking on how to do this with pulp admin ?

Rob