function removeVersions(versions) {
  const rimraf = require('rimraf');

  function remove(path) {
    rimraf.sync(path, {
      glob: false
    });
  }

  log(text.removing);

  versions.forEach((version) => {
    try {
      remove(version.realPath);
      remove(version.path);
    } catch (e) {
      console.error(e.stack);
    }
  });

  // Remove the cache because it's no longer accurate.
  remove(require('./paths.js').cache);

  log(text.done);
}
// Removes the given versions from the file system.
Removes the given versions from the file system.
Removes the given versions from the file system .
function removeVersions(versions) {
  const rimraf = require('rimraf');
  function remove(path) {
    rimraf.sync(path, {
      glob: false
    });
  }
  log(text.removing);
  versions.forEach((version) => {
    try {
      remove(version.realPath);
      remove(version.path);
    } catch (e) {
      console.error(e.stack);
    }
  });
  remove(require('./paths.js').cache);
  log(text.done);
}
function removeVersions ( versions ) { const rimraf = require ( 'rimraf' ) ; function remove ( path ) { rimraf . sync ( path , { glob : false } ) ; } log ( text . removing ) ; versions . forEach ( ( version ) => { try { remove ( version . realPath ) ; remove ( version . path ) ; } catch ( e ) { console . error ( e . stack ) ; } } ) ; remove ( require ( './paths.js' ) . cache ) ; log ( text . done ) ; }
Removes the given versions from the file system.
Removes the given versions from the file system .
// Remove the cache because it's no longer accurate.