You can follow the website I mentioned (this one
). There is no need to deal with any other file like:
Just create a own header.php then uncomment the part mentioned by Max or on the website
and you are done with the change and the generator meta tag is removed.