#!/bin/bash

source /opt/scripts_local/shared_functions.sh
APPDATA=/opt/appdata

clean_oldest_file 1 "$APPDATA"/bazarr/backup
clean_oldest_file 1 "$APPDATA"/radarr/backup/scheduled
clean_oldest_file 1 "$APPDATA"/sonarr/backup/scheduled
clean_oldest_file 2 "$APPDATA"/tautulli/config/backups