Sometimes menu gets messed up and all the new links go on the admin menus first level. Or you have other reasons to rebuild menu. You also need devel module to do this.
Source code viewer
- // Run delete menu links.
- $num_deleted = db_delete('menu_links')
- ->condition('module', 'system')
- ->execute();Programming Language: PHP
Clear cache and you are done.