You should write the name of the theme as in the folder /wp-content/themes
For example, for hiding the default theme Twenty Fifteen you should write like this
function kill_themes($themes) {
unset($themes['twentyfifteen']);
return $themes;
}
add_filter('wp_prepare_themes_for_js','kill_themes');