I assume you are talking about the 'block_course_list_hideallcourseslink' option in the course listing block.
This only removes the button in that block... not everywhere else.
There's a variety of (open) feature requests for variations on "don't show courses that the student is not enrolled on".