Retention period not working

Hello everyone,
I am having trouble configuring loki with GCS and retention.
here is an extract of my conf :

deploymentMode: SimpleScalable
loki:
  schemaConfig:
    configs:
      - from: "2024-08-19"
        store: tsdb
        index:
          prefix: loki_index_
          period: 24h
        object_store: gcs
        schema: v13
  storage:
    type: 'gcs'
    bucketNames:
      chunks: mybasebucket_loki-chunks
      ruler: mybasebucket_loki-ruler
      # admin: mybasebucket_loki-admin
    filesystem:
      directory: /data/loki/chunks
  limits_config:
    retention_period: 5d
compactor:
  working_directory: /data/retention
  compaction_interval: 10m
  retention_enabled: true
  retention_delete_delay: 2h
  retention_delete_worker_count: 150
  delete_request_store: gcs

but my log history never gets deletede and when I look in my chunk bucket, files never get deleted neither.
what am I doing wrong ?
can you advise ?
thanks

Don’t see anything obvious. Any error log from compactor?

I found my problem : indentation was wrong on “compactor”.
proper indentation is :

loki : 
   ...
   limits_config:
      retention_period: 5d
      ...
   compactor:
      retention_enabled: true
      delete_request_store: gcs

Hope it will help other stupid guys like me :wink:

@pdelorme

Could you please provide the details of the folders/files that were created in your Google Cloud Storage bucket?

Also, does setting retention_period: 5d mean that any logs older than 5 days will be automatically deleted from the GCS bucket?