Is there a way to 'unfavourite' all course by default?

craig_nicholls
Community Participant

I am currently building courses for young students and I am trying to simplify their user experience. To that end I am trying to organise the dashboards of all students so that they can only see one course by default, all other courses will be linked from that one course. 

So to the point, is it possible with a script to set mark only one course as favourite for all students and all the other courses to be not favourite?