public function delete( $args, $assoc_args ) {

		$count  = 0;
		$errors = 0;
		foreach ( $args as $arg ) {
			$ret = wp_delete_nav_menu( $arg );
			if ( ! $ret || is_wp_error( $ret ) ) {
				WP_CLI::warning( "Couldn't delete menu '{$arg}'." );
				$errors++;
			} else {
				WP_CLI::log( "Deleted menu '{$arg}'." );
				$count++;
			}
		}

		Utils\report_batch_operation_results( 'menu', 'delete', count( $args ), $count, $errors );
	}
public function delete( $args, $assoc_args ) {

		$count  = 0;
		$errors = 0;
		foreach ( $args as $arg ) {
			$ret = wp_delete_nav_menu( $arg );
			if ( ! $ret || is_wp_error( $ret ) ) {
				WP_CLI::warning( "Couldn't delete menu '{$arg}'." );
				$errors++;
			} else {
				WP_CLI::log( "Deleted menu '{$arg}'." );
				$count++;
			}
		}

		Utils\report_batch_operation_results( 'menu', 'delete', count( $args ), $count, $errors );
	}
public function delete ( $ args , $ assoc_args ) { $ count = 0 ; $ errors = 0 ; foreach ( $ args as $ arg ) { $ ret = wp_delete_nav_menu ( $ arg ) ; if ( ! $ ret || is_wp_error ( $ ret ) ) { WP_CLI :: warning ( "Couldn't delete menu '{$arg}'." ) ; $ errors ++ ; } else { WP_CLI :: log ( "Deleted menu '{$arg}'." ) ; $ count ++ ; } } Utils \ report_batch_operation_results ( 'menu' , 'delete' , count ( $ args ) , $ count , $ errors ) ; }
Deletes one or more menus.

## OPTIONS

<menu>...
: The name, slug, or term ID for the menu(s).

## EXAMPLES

$ wp menu delete "My Menu"
Success: 1 menu deleted.
Deletes one or more menus .