code: def clean(self, tool):
          
  
          tools = self._validate_tools(tool)
          if tools == -1:
              return -1
  
          for current_tool in tools:
              # We get the export dict formed, then use it for cleaning
              self._fill_export_dict(current_tool)
              path = self.project['export']['output_dir']['path']
  
              if os.path.isdir(path):
                  logger.info("Cleaning directory %s" % path)
  
                  shutil.rmtree(path)
          return 0
docs: Clean a project