Minimize history/ log for dietpi controlled softwares

Hello @ MichaIng
In pihole forum you gave instruction to make data log for one week for pi hole by writing “MAXDBDAYS=7 in /etc/pihole/pihole-FTL.conf to have logs for one week only.”
is there any same type of fine tuning I can do for these dietpi controlled software
Home assistant
MQTT broker
Samba share
Proftpd share
I do not need much history of these software. All these software are installed/control by dietpi. One week of history these softwares are sufficient to me. If it save resources for my system. I think Homeassistant is most critical for log/history.

I found & executed these procedure to reduce the size of storage used by plex based on following forum:

i made a cron command to delete these folders periodically. which reduce the storage used by plex without any loss in total functionality of plex media server performance according to me. i do not know in deeper what will effect adversely for plex functionality by removing them. but overall i am happy with slim trim version of plex & my rootfs partition on SSD also shown some extra free space.

remove these folders>>
/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Caches/com.plexapp.*
/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Cache/*