Navigate to the Students tab of your course.
Navigate to the student you wish to ban from your course and select the options icon .
Select Ban from course.
Confirm banning them from the course by selecting Ban.