REMOVE BOX

To clear an inherited box you can replace it by a Blank or None Box.

We will create the following structure:

Screenshot

1. Create a None Box in Page2

$ret['generators']['mainMenu'] = array(
    'class' => 'Kwf_Component_Generator_Box_Static',
    'component' => 'Kwc_Basic_None_Component'
);

And that's all you have to do. Advantage of this technique is that you don't have to modify the master template.

To also hide it for child pages add 'inherit' => true

Hide complete box in master

To hide the complete element you can add an if:

<? if ($this->hasContent($this->boxes['mainMenu'])) { ?>
    <div class="mainMenu">
        <?$this->component($this->boxes['mainMenu']);?>
    </div>
<? } ?>

None vs. Blank