For example in the Anon Users group, if you remove a checkmark for access to a module in the "Module access rights" section that link in the main menu will not appear for anon users.
This site has some excellent theme tutorials
http://www.dcdezines.ca/