...
Go to the Participants Tab (under the course title)
In the pulldown menu labeled Enrolled Users → select Enrollment Methods
Click on the Trash Can icon on the Guest access row
Is Guest Access Enabled?
You can tell whether Guest Access is enabled by checking for the following:
On your Moodle course page, go to the Participants Tab (under the course title)
In the pulldown menu labeled Enrolled Users → select Enrollment Methods
...