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
curl -X POST <jenkins-server>/job/<job-name>/<build-number>/doDelete