Meta generator removing from wordpress

Add following code in function.php

remove_action(‘wp_head’, ‘wp_generator’);