code: def remove_comments(self, recursive=True):
          
          self.text = texutils.remove_comments(self.text)
          if recursive:
              for path, document in self._children.iteritems():
                  document.remove_comments(recursive=True)
docs: Remove latex comments from document (modifies document in place).
  
          Parameters
          ----------
          recursive : bool
              Remove comments from all input LaTeX documents (default ``True``).