title: how to cancel build queue jobs in jenkins, which are not started by jenkins and are in its build queue through REST API
body: <p>how to cancel build queue jobs in jenkins through REST API, which are not started by jenkins and are in its build queue. I know how to cancel the in-progress job with below command</p>
  
  <pre><code>curl -X POST &lt;jenkins-server&gt;/job/&lt;job-name&gt;/&lt;build-number&gt;/doDelete                        
  </code></pre>