If there are students in a group who do not belong there, you can remove them from the group.
In the navbar, go to Users > Groups.
Then click on the group from which you want to remove the student.
Click Enrol Users
You will now see a checkmark next to the students who are enrolled. Uncheck the student(s) you want to remove.
Then click Save
