function  clearLoadedInput(key){
  // delete the labels, records, and status for the dataset
  datasets.delete(key);

  /* remove its cache entries
     IMPORTANT: this is needed for when (if) the data set is ever re-added
     Since the "reload" logic first removes and then re-adds a data-set,
     this is absolutely essential to ensuring that the user will see the new
     data rather than the old data.
  */
  mwcache.forEach(function(_,ckey,c){
    let ck=JSON.parse(ckey);
    if(ck.length && ck[0]==key) {
      c.del(ckey);
    }
  })
}
// Remove all traces of one of the inputs. It doesn't have to be "loaded"
Remove all traces of one of the inputs. It doesn't have to be "loaded"
Remove all traces of one of the inputs . It doesn ' t have to be " loaded "
function  clearLoadedInput(key){
  datasets.delete(key);
  mwcache.forEach(function(_,ckey,c){
    let ck=JSON.parse(ckey);
    if(ck.length && ck[0]==key) {
      c.del(ckey);
    }
  })
}
function clearLoadedInput ( key ) { datasets . delete ( key ) ; mwcache . forEach ( function ( _ , ckey , c ) { let ck = JSON . parse ( ckey ) ; if ( ck . length && ck [ 0 ] == key ) { c . del ( ckey ) ; } } ) }
Remove all traces of one of the inputs.
Remove all traces of one of the inputs .
// delete the labels, records, and status for the dataset /* remove its cache entries
     IMPORTANT: this is needed for when (if) the data set is ever re-added
     Since the "reload" logic first removes and then re-adds a data-set,
     this is absolutely essential to ensuring that the user will see the new
     data rather than the old data.
  */