Module to Reset an LMS User to Beginning

Hi all, I am working on an Opigno-based LMS that has some rigorous course development needs. I've frequently needed to reset a test user to a state equivalent to having just registered (i.e.: erasing all quiz and course progress) so I went ahead and created a utility module to do the work: It's really basic but does the job. Feedback welcomed.