Delete all jenkins jobs

import jenkins.model.*

Jenkins.instance.items.findAll { job ->

  if (job.name =~ /^jenkins/) {
      println 'SKIPPING ' + job.name
  } else {
      println job.name
    job.delete()

  }
}