function plt_hide_jetpack_menus() {
//Hide the "Jetpack" menu.
remove_menu_page('jetpack');
//Hide the "Jetpack → Settings" menu.
remove_submenu_page('jetpack', 'http://127.0.0.1/wp-admin/admin.php?page=jetpack#/settings');
//Hide the "Jetpack → Dashboard" menu.
remove_submenu_page('jetpack', 'http://127.0.0.1/wp-admin/admin.php?page=jetpack#/dashboard');
}
add_action('admin_menu', 'plt_hide_jetpack_menus', 2001);