Enhanced Old Build Discarder's "Discard Only On Success" not behaving as the name suggests

I want to delete logs only if the build succeeds and to hold onto failed logs. I’ve used the following settings in the GUI for Enhanced Log Rotator:

Days to keep builds: 1
Max # of builds to keep: 10
Discard Only On Success: checked
Hold Max Builds: unchecked

I would highly appreciate any insights on why this is happening.