Your functions.php file had code stripped out of it when you posted it so email the functions.php file to: info at ait-pro dot com instead so I can look at it.
Very welcome. 🙂 I like knowing all of this stuff in general so it is good to have it documented here in this Topic in case I want to use some of this code myself. 😉
The above lines of code provided by my theme developer in theme functions.php with the lines provided by AITpro allowed to completely remove the rest api from the header.