Can I create jobs using / createItem? name = JOBNAME, but can't find anything in the job deletion docs.
It was discovered by looking at how the delete button does this, that you can just send to joburl / doDelete a bit like this.
wget -qO- --post-data="anything" http://HOST/job/JOBNAME/doDelete > /dev/null
Go to <JobURL>/api/? . You will get the text below.
<JobURL>/api/?
Delete taskTo programmatically delete this job, do an HTTP POST for this URL.
Delete task
To programmatically delete this job, do an HTTP POST for this URL.
DISCLAIMER: I tested it with Jenkins. But this should also work in Hazon.