I have an issue were I am the owner of a project on a gitlab server, and I can successfully delete all artifacts for a job as listed in the docs..
curl --request DELETE --header "PRIVATE-TOKEN: <token>" "https://gitlab.corp.com/api/v4/projects/1/jobs/1/artifacts"
and I get a 204, meaning it has successfully deleted them.
But , when I try to do the similar command to delete the job. I get a 403 forbidden error...
curl --request POST --header "PRIVATE-TOKEN: <token>" "https://gitlab.corp.com/api/v4/projects/1/jobs/1/erase"
This is the offical documentation, I am using. I am a gitlab admin and project owner. So, it can't be a permission thing, so it is something else...
Can someone tell me what I am missing? I am the owner, why can't I delete the bloody thing?