Roccob
Cleanup is done by deleting tickets. The system automatically cleans orphaned files, expired sessions, etc. the rest is up to you.
You can install/configure the Filesystem plugin, migrate the files from the database to the file system (via command line commands), and your db size should decrease.
You should also ensure you are using MySQL 8.0+ and have innodb_file_per_table enabled so MySQL reclaims storage on disk automatically.
Cheers.