Get job API does not share the information releted to job erase status

Currently I am trying to cleanup the gitlab artifacts of the job, i tried to get the details of the job.
When, I execute get jobs it t=returns me all the jobs (including erased job).

Get job API should return the status of erased job