code: function clean() {
      const distDir = "./dist";
  
      try {
          fse.readdirSync(distDir).forEach(file => {
              let filePath = path.resolve(distDir, file);
              if (fse.lstatSync(filePath).isDirectory()) {
                  logInfo("Clean distribution package " + file);
                  try {
                      rimraf.sync(filePath);
                  } catch (e) {
                      logError("Could not clean distribution package: " + e);
                  }
              }
          });
      } catch (e) { }
  }
docs: Clean all distribution packages.