Expanding on evgenyl's answer, the exact command would be something like:
curl -X POST -g 'http://localhost:9090/api/v1/admin/tsdb/delete_series?match[]={job="name_of_old_job"}'
Replace name_of_old_job with the name of the job you want deleted.
Reminder that you need to have started prometheus with the --web.enable-admin-api flag
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…