function cleanFrameworkDirectories({ frameworksDirPath, frameworksTypes }) {
  console.log(
    "Clean framework directories",
    "frameworksDirPath",
    frameworksDirPath,
    "frameworksTypes",
    frameworksTypes
  );

  for (const frameworkType of frameworksTypes) {
    const frameworkDir = path.resolve(frameworksDirPath, frameworkType);
    const directories = fs.readdirSync(frameworkDir);

    for (const directory of directories) {
      const frameworkPath = path.resolve(frameworkDir, directory);
      console.log(`cleaning ${frameworkPath}`);
      deleteFrameworkFiles(frameworkPath, filesToDelete);
    }
  }
}
Cleans all framework directories of package-lock.json, yarn-lock and the elm-stuff, node-modules, bower-components and dist directories.
@param {Object} options
@param {string} options.frameworksDirPath
@param {Array<string>} options.frameworksTypes