public void clearAll(boolean reset, Consumer<String> clientIdConsumer) {
            if (reset || clientIdConsumer != null) {
                Set<MVSKey> keys = Collections.unmodifiableSet(getMVSKeys());
                clearMVSKeys(keys, reset, clientIdConsumer);
            }

            getFacesContext().getExternalContext().getSessionMap().remove(Constants.MULTI_VIEW_STATES);
        }
Removes all multiViewState within the current session.

@param reset indicates whether or not the component should be reset, if it is in the current view
@param clientIdConsumer Callback for each removed clientId
primefaces/src/main/java/org/primefaces/PrimeFaces.java