title: Jenkins - Is there a way to remove all offline nodes (slaves) / batch remove nodes / delete all nodes?
body: <p>While using the Jenkins Docker Plugin, probably because of an error, swarms cannot be launched. I didn't pay attention and at the moment I have thousands of offline nodes, that were failed to launch. </p>
  
  <p>BOTTOM LINE - Is there a way to batch remove nodes (slaves) in Jenkin, clean all offline nodes or even delete all nodes? Restating the Jenkins server didn't help, and I couldn't find a way in the Jenkins API.</p>
  
  <p>Will appreciate any idea, before I'm starting to write a Selenium script or something...</p>
  
  <p>Many thanks!</p>