I want to create my custom nav menu using a script in a wp plugin.
I'm almost there using this tutorial. All I need is the option to delete menu entries.

something like wp_delete_nav_menu_item($menuID, $itemID);

As an alternative, I could create a new menu using wp_create_nav_menu($menu_name); so I don"t have to delete the default entries of the menu I would be working with otherwise. The problem here is, that the theme gives options for the position of the menu like 'header' and I dont know how i can define a position for a newly created menu.

Hope someone can give advice so I can solve one of these issues.
Thanks!

This is the code I am working with so far. I need the code for the part to delete the default entries

I'm sorry it seems like i haven't described very well what I need. I am using an existing theme and I'm coding a plugin to create a menu as part of a setup routine. See my edit above
–
karuninMar 6 '14 at 10:07