The TYPO3 extension "scheduler" can be used to execute regular clean-up tasks in TYPO3, for example, permanently deleting deleted records, refreshing file metadata, or optimizing tables. Let's look at available options and an example setup in this short video.
Mentioned links: https://crontab.guru/
TYPO3 Services: https://www.typo3.com
TYPO3 Community: https://www.typo3.org
TYPO3 Documentation: https://docs.typo3.org