how to remove module-created links from menus?
Ok, just in case anyone else finds this useful: I got in this pickle because I installed a module (nodehierarchy) which generated menu items. Menu items created by modules are not deletable in the normal admin UI. When I removed the module it did not clean up after itself, leaving orphaned entries that drupal thought belong to a module that doesn't exist.

I don't know why drush cc menu didn't clean them out, perhaps a policy of not deleting data just in case.

To fix: start a mysql client on your drupal db and inspect the contents of menu_links, find the rows and delete. e.g. 

mysql&gt; delete from menu_links where module='nodehierarchy';


Then clear caches and fixed.