I just asked a similar question. Please let me know if you come up with an answer. We're looking to remove a specific role from courses in a specific category. I was thinking of developing a tool to do this, but I'm not familiar on where to start with the development process.
Enrolment
Batch unenrolment across several courses
This discussion has been locked so you can no longer reply to it.