public void clearAll(String viewId, boolean reset, Consumer<String> clientIdConsumer) {
            Set<MVSKey> keys = getMVSKeys().stream()
                    .filter(k -> Objects.equals(k.viewId, viewId))
                    .collect(Collectors.toSet());
            if (!keys.isEmpty()) {
                clearMVSKeys(keys, reset, clientIdConsumer);
            }
        }
Removes all multiViewState in specific view within the current session.

@param viewId viewId in which multiview state should be cleared
@param reset indicates whether or not the component should be reset, if it is in the current view
@param clientIdConsumer operation to execute for every clientId after multiview state has been cleared
primefaces/src/main/java/org/primefaces/PrimeFaces.java