Learners have no option to remove themselves from courses.
Learners who self-registered see no Unenroll option. Enable Account Settings > Courses/Learning Path > edit and check "Allow Learners To Unenroll From Courses/Learning Paths Accessed through Library", then save; the Unenroll link appears next to Continue this course. Questions this answers: How can learners remove self-enrolled courses from their dashboard? Why does an Unenroll button appear on a course?