wp_delete_nav_menu
wp_delete_nav_menu ( $menu )
Parameters:- (int|string|WP_Term) menu Menu ID, slug, name, or object.
Returns:- (bool|WP_Error) True on success, false or WP_Error object on failure.
Defined at: - Introduced in WordPress: 3.0.0
- Deprecated in WordPress: —
Description
Deletes a navigation menu.