you can add an exclusion into the robots.txt file for maindomain to stop robots crawling that directory. Also, if you use the webmaster tools that google provides you can remove directories from the results. So once you've fixed robots.txt you can request removal of the directory
