nl_tokens: Remove a refinement set on facet . If a value is provided it will clear the refinement for the given value otherwise it will clear all the refinement values for the faceted attribute .
pl_tokens: function removeFacetRefinement ( facet , <mask> ) { if ( ! this . isConjunctiveFacet ( facet ) ) { throw new Error ( facet + ' is not defined in the facets attribute of the helper configuration' ) ; } if ( ! RefinementList . isRefined ( this . facetsRefinements , facet , value ) ) return this ; return this . setQueryParameters ( { facetsRefinements : RefinementList . removeRefinement ( this . facetsRefinements , facet , value ) } ) ; }