My project has 45mb of files but uses 21 GB of storage. I would like to clean that up.
I was unlucky and I assumed that deleting the jobs the artifacts would be gone, but they didn’t. Then I saw that almost every solution for this requires two steps, a script in browser console to retrieve all jobs + a script that takes that list of jobs and deletes it. Because I’m made impossible the first step, I’ve tried a brute force script in this topic here: https://gitlab.com/Cast-Soft/moa/-/commit/e878fd5e839ebda22f230988c8db7afc044f756d/pipelines?ref=moaadminfullrevise
That didn’t work, because since I’m using public runners I’m trying to guess and delete all jos one by one using a range loop from my first pipeline number from 12 -16 months ago until now, there are 150.0000 possibilities. My loop was running for 4 days and didn’t catch anything until it crashed.
Summary: I just really need to retrieve all job IDS via command line considering that they were deleted to delete their artifacts , or some sort of reset that will cleanup all previous pipelines