I have existing Jenkins (2.90) jobs that are taking up disk space. When I enable the "Discard Old Builds" option I don't see any cleanup going on in the folder on the builds older than 7 days.

When does Jenkins do this cleanup? Or does it only apply for new builds after I apply the setting?

Jenkins discard build option

1 Answer 1


Per the Jenkins documentation:

Cleanup per project/job is performed after that job runs.

As of v2.221, cleanup will also periodically run using the new Global Build Discarders (even if a job has not recently been run).



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.