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.”
https://discourse.pi-hole.net/t/database-size-reaches-3-9gb-and-ftl-fails-to-start/43664/9
is there any same type of fine tuning I can do for these dietpi controlled software
Home assistant
Unbound
Plex
Wireguard
MQTT broker
Bitwarden
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:
https://forums.plex.tv/t/how-to-clean-up-the-huge-cache-folder/503871/6

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/*