- Go to your Jenkins home page → Manage Jenkins → Script Console
- Run the following script there. Change JOB_NAME to your project name
def jobName = "JOB_NAME"
def job = Jenkins.instance.getItem(jobName)
job.getBuilds().each { it.delete() }
job.nextBuildNumber = 1
job.save()