Services settings aren't sticking

I am trying to increase the length of time that Home Assistant stores state data from my sensors. My understanding is that it defaults to 10 days and that is controlled by the recorder.purge service. However, whenever I try to increase that time limit either through the UI or directly in YAML the settings don’t stick.

I will change the values that I want and then click ‘call service’ to save them. Yet when I come back the next day to see if I now have 11 days of data instead of 10 I only have 10 and the settings look like I never touched them.

What am I doing wrong here?

purge_keep_days is the option that you want and you set it in configuration.yaml.

Executing recoder.purge simply purges the database at the moment of execution but doesn’t instruct Recorder to alter its purge duration. That’s determined by purge_keep_days.