reset = (deleteCookie) => {
    //{{START: GUI}}
    const { _ccMain, _htmlDom } = globalObj._dom;
    //{{END: GUI}}

    const { name, path, domain, useLocalStorage } = globalObj._config.cookie;

    if (deleteCookie) {
        useLocalStorage
            ? localStorageManager._removeItem(name)
            : eraseCookies(name, path, domain);
    }

    /**
     * Remove data-cc event listeners
     */
    for (const {_element, _event, _listener} of globalObj._state._dataEventListeners) {
        _element.removeEventListener(_event, _listener);
    }

    //{{START: GUI}}
    /**
     * Remove main container from DOM
     */
    _ccMain && _ccMain.remove();

    /**
     * Remove any remaining classes
     */
    _htmlDom && _htmlDom.classList.remove(
        TOGGLE_DISABLE_INTERACTION_CLASS,
        TOGGLE_PREFERENCES_MODAL_CLASS,
        TOGGLE_CONSENT_MODAL_CLASS
    );
    //{{END: GUI}}

    const newGlobal = new GlobalState();

    /**
     * Reset all global state props.
     */
    for (const key in globalObj) {
        globalObj[key] = newGlobal[key];
    }

    window._ccRun = false;
}
Reset cookieconsent.
@param {boolean} [deleteCookie] Delete plugin's cookie