How cleanup old records in db

Help me please. For the second day I have been trying to set up cleaning, but nothing comes out. I’ve already read the documentation.I’ve tried adding these parameters.

< property name="historyCleanupStrategy">endTimeBased</property>
< property name="historyTimeToLive">P1D</property>

bpm-platform.xml
This config works, but if I add parameters, an error occurs

<process-engine name="default">
 <job-acquisition>default</job-acquisition>
<configuration>org.camunda.bpm.engine.impl.cfg.StandaloneProcessEngineConfiguration</configuration>
<datasource>java:jdbc/ProcessEngine</datasource>

<properties>
  <property name="jobExecutorActivate">true</property>
  <property name="history">full</property>
  <property name="databaseSchemaUpdate">true</property>
  <property name="authorizationEnabled">true</property>
  <property name="jobExecutorDeploymentAware">false</property>
  <property name="historyCleanupBatchWindowStartTime">15:55</property>
  <property name="historyCleanupBatchWindowEndTime">16:10</property>
  <property name="batchOperationHistoryTimeToLive">P1D</property>
</properties>

But in response, an error(For other parameters, the same)

ENGINE-08040 Cannot find setter for property ‘historyTimeToLive’ on class ‘org.camunda.bpm.engine.impl.cfg.StandaloneProcessEngineConfiguration’

I have set for each Process Definitions and for each version TTL P1D

I have used REST API

But I still see data in the table for 04.2020
(ACT_HI_ACTINST TABLE FRO EXAMPLE)

Please don’t post the same question multiple times.
You’ve already asked hit here. be patient