by Ken Task.
What's the goal of restoring? Is it to remove students and their work/grades from the course to take on new students?
IF so ... alternative process ... teachers make a full backup, download that backup, remove the backup (that's your archive). Teacher then uses 'reset' selecting options to remove all student work but content and teacher stays.
4.5 has reset.
The 'catch 22' is space as recyclebin is still in play.
You, as admin. could do the above, but it would be command line via moosh and would need to be coordinated with teachers.
https://moosh-online.com/commands/
'SoS', Ken