How to cleanup postgresql ratelimiting tables

We are using PostgreSQL as the backend database for our kong instances. The rate-limiting tables on the database grew and consumed almost 11 GB of disk space the table names are

  • ratelimiting_metrics_pkey 4.7 GB
  • ratelimiting_metrics 3.5 GB
  • ratelimiting_metrics_idx 2.8 GB

How can we clean up older data from the Postgres and reduce the size of the database

I could see an issue in GitHub that kong has implemented a cleanup feature but, I cannot find any configurations on documentation regarding this feature