Remove WordPress Version from Header

Add the following code inside the functions.php

remove_action('wp_head', 'wp_generator');