Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
unenroll all students from Moodle course
# used for instance when First Year wants to drop sophomores from their home & replace with new incoming students
# COURSE = course id
USERS=$(moosh -n user-list --course $COURSE --course-role student)
moosh -n course-unenrol $COURSE $USERS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment