public function deleteMenuLinks(AfterScenarioScope $event) {
    if ($this->menuLinks) {
      foreach ($this->menuLinks as $menu_link) {
        $this->getCore()->entityDelete($menu_link);
      }

      $this->getCore()->clearMenuCache();
    }
  }