Loki Retention Not Working

I am using this grafana/loki helm chart, and I have been struggling with enabling retention for it.
This is my loki-values.yaml file.

  auth_enabled: false #Unable to add Loki data source to Grafana
  commonConfig: #Minimize replication
    replication_factor: 1 
  storage: #Simple storage system
    type: 'filesystem'
  limits_config: #Optimize logging
    retention_period: 24h
    enforce_metric_name: false
    reject_old_samples: true
    reject_old_samples_max_age: 24h
    max_cache_freshness_per_query: 10m
    split_queries_by_interval: 15m
    # for big logs tune
    per_stream_rate_limit: 512M
    per_stream_rate_limit_burst: 1024M
    cardinality_limit: 200000
    ingestion_burst_size_mb: 1000
    ingestion_rate_mb: 10000
    max_entries_limit_per_query: 1000000
    max_label_value_length: 20480
    max_label_name_length: 10240
    max_label_names_per_series: 300

tableManager: #Retention
  retention_deletes_enabled: true
  retention_period: 24h

# compactor: #Try next time
#   retention_enabled: true

singleBinary: #When storage = filesystem
  replicas: 1
    size: 10Gi #Size of storage

#Remove everything related to Loki's self monitoring
    enabled: false
      enabled: false
  grafanaAgent: #Useless
    installOperator: false
test: #Due to Helm execution error
  enabled: false

Try using compactor instead and disable table manager. See Retention | Grafana Loki documentation.