I'd like to know the best way to delete system menu links. I can't delete them through the UI because they have somehow become stray links (there is no "delete" link next to them).
I've looked at menu_link_delete, which calls _menu_delete_item, but that won't hit if $item['module'] == 'system'
unless I force it which is discouraged.
So... if I can't do it through the Drupal API, do I need to do a DB query? If so, which tables should be involved in the delete? Can I get away with just removing records from the menu_links
table? It looks like the has_children value may also need to be altered?
Are there other options besides a DB query which I'm not seeing?
I've also seen this answer, but he just moved the stray links to another menu, which I don't want to do.