'events' table clean up data

I found that the public.events table in Redash PostgreSQL database has a lot of data, 3 million rows and 640 Mb. I use Redash for some personal data, it is not a installation that receives a lot of traffic.

So I deleted most of the data, but it will grow again. Is there a supported way of keeping only a configurable amount of days of events?