Remove Themes Menu for WP Dashboard

Add this to Theme’s functions.php file

add_action('admin_init', 'remove_theme_menus');
function remove_theme_menus() {
global $submenu;
unset($submenu['themes.php'][5]);
unset($submenu['themes.php'][15]);
}