public function afterDelete(Event $event, Menu $menu, ArrayObject $options = null)
    {
        $blocks = TableRegistry::get('Block.Blocks')
            ->find('all')
            ->select(['id', 'handler', 'settings'])
            ->where(['handler' => 'Menu\Widget\MenuWidget']);
        foreach ($blocks as $block) {
            if (!empty($menu->settings['menu_id']) && $menu->settings['menu_id'] == $menu->id) {
                TableRegistry::get('Block.Blocks')->delete($block);

                return;
            }
        }

        $this->clearCache();
    }