delete invalid menus