I have upgraded my production Moodle website to 2.1 (well a local copy of course ! I will do the real upgrade later this summer). Of course I had a big pile of unused files in my moodledata course's folders and I could not delete the unused ones before upgrading because I didn't know wich ones were used and wich ones were not.
Now what is the best way of completely get rid of the legacy course files ?
Of course I can disable the legacy course files repository plugin in Administration > Plugins > Repositories > Manage repositories.
But what about files not used anywhere in my Moodle (I mean not used anywhere outside the legacy course files area) ? They have a record in mdl_files database table with filearea=legacy I think and I absolutely don't want them to stay here forever.
I no more need them on the server as I have local copies on my computer (and backups !) just in case I need to use them in the future.
Do I need to go into each course before disabling legacy course files repository and "delete" (I know it don't really delete the file but move the file to trash if it's no more used) each file in the file picker so that gabage collection in cron can do it's job or is there a quicker way ?
I know some of you will ask why I want to get rid of the legacy course files areas.
- because I want my upgraded Moodle to look as much as possible like a brand new Moodle 2.1 website (If I don't succed I will simply have an closed to visitors Moodle 1.9 website for archive purpose and a brand new Moodle 2.1 install for the next year in september)
- I find that the legacy course files don't fit well in the way I plan to work in the future as I am quite sure given my poor memory that I will be completely lost between external repositories and this legacy course area.