remove(includeState = false) {
        // Cache parent before we remove the node
        const parent = this.getParent();

        // Remove self
        this.context().remove(this);

        // Refresh parent states
        if (parent) {
            parent.refreshIndeterminateState();
            parent.markDirty();
        }

        if (this.tree().config.selection.autoSelectOnNodeRemoval && this.selected()) {
            this.tree().autoSelectNode();
        }

        const pagination = parent ? parent.pagination() : this._tree.pagination();
        pagination.total--;

        // Export/event
        const exported = this.toObject(false, includeState);
        this._tree.emit('node.removed', exported, parent);

        this.context().applyChanges();

        return exported;
    }
Remove a node from the tree.

@param {boolean} includeState Include itree.state object.
@return {object} Removed tree node object.