How to allow store only comments in Activity app

I’m new to Nextcloud but I already have lots of GB of data in the database because of the activity log…

I wanted to allow only to store the activity of the comments, and save nothing more than this. I know I can set a cron to delete them, but in my case I want to keep the comments for a long time, and not even store the other activities.