Old log files not purged after changing config file and resetting the server

  • Versions:
    • SonarQube Community Edition 8.9 LTS
    • SonarScanner 4.6.2
  • Trying to achieve:
    • Only keep today’s and yesterday’s logs
  • I’ve tried setting these environment variables in my docker-compose.yml:
    • SONAR_LOG_MAXFILES=2
    • SONAR_LOG_ROLLINGPOLICY=time:yyyy-MM-dd

My question:
I still see more than 2 log files per type, why aren’t them purged?

Thanks in advance.