Search code examples
hudson

Is it possible to delete a hudson job programmatically via REST API?


I can create jobs using /createItem?name=JOBNAME, but cant find anything in the docs about deleting jobs.


Solution

  • Discovered by looking into how the delete button does it that you can just post to joburl/doDelete a bit like this..

    wget -qO- --post-data="anything" http://HOST/job/JOBNAME/doDelete > /dev/null