stylelint-bundle-worker.js
function ( docId, cacheDir ) {
    var filePath = cacheDir ? path.resolve( cacheDir, docId ) : path.resolve( __dirname, './.cache/', docId );
    return del( filePath, { force: true } ).length > 0;
  }
function ( docId, cacheDir ) {
    var filePath = cacheDir ? path.resolve( cacheDir, docId ) : path.resolve( __dirname, './.cache/', docId );
    return del( filePath, { force: true } ).length > 0;
  }
Clear the cache identified by the given id. Caches stored in a different cache directory can be deleted directly

@method clearCache
@param docId {String} the id of the cache, would also be used as the name of the file cache
@param cacheDir {String} the directory where the cache file was written
@returns {Boolean} true if the cache folder was deleted. False otherwise