I was able to clean the trash with following steps:
- added " ‘trashbin_retention_obligation’ => ‘auto, 30’, " to config.php
- restarted the docker container just for sure
- run “update oc_jobs set last_run=0” to database
- run sudo -u www-data php ./cron.php in nextcloud container, and it finally deleted all the old trashed files.