Great respect to everyone here!!! Version 4.1.1 (Build: 20230116)
I have problem with deleting backups, when I del it from web interface (Course reuse -> Course backup area -> Manage backup files) I see that file left in table mdl_files as 'draft' and big file is in filedir (screenshot). Please help me to delete such left records in table and files from filedir correctly, may be there is some scheduledtasks to solve this problem with old records and big old file on server.
Additional info:
- backup file mbz created with cli /usr/share/nginx/html/moodle/admin/cli/backup.php
- my cron is disabled, unfortunately, I can't turn it on yet due to other problem with the emals and I need a separate by cron function/solution.
- I tried manually running of scheduled tasks "Clean backup tables, logs and files \core\task\backup_cleanup_task", and "Cleanup files in trash \core\task\file_trash_cleanup_task", no result (only trashdir become 0 byte)

Directory 'filedir' on server (not 'trashdir'!):

Thank You so much!