function(name) {
      return new Promise((resolve, reject) => {
        rimraf(name, err => {
          if (err) {
            reject(err);
          } else {
            resolve();
          }
        });
      });
    }
function(name) {
      return new Promise((resolve, reject) => {
        rimraf(name, err => {
          if (err) {
            reject(err);
          } else {
            resolve();
          }
        });
      });
    }
function ( name ) { return new Promise ( ( resolve , reject ) => { rimraf ( name , err => { if ( err ) { reject ( err ) ; } else { resolve ( ) ; } } ) ; } ) ; }
Deletes a file or directory; directories are recursively removed
@param name {String} file or dir to delete
@async
Deletes a file or directory ; directories are recursively removed