When enabled, Jenkins is allowed to remove the last successful and last stable build if they match the configured build discarder rules.

By default, Jenkins keeps the most recent successful and stable builds, even if they are older than the configured retention limits. Enabling this option overrides that behavior.

Example:
If builds are configured to be deleted after 7 days, and the most recent successful build is 30 days old, it will normally be kept. With this option enabled, that build will also be removed.

This option is also available in Pipelines with:

options {
    buildDiscarder logRotator(removeLastBuild: true)
}