hide openGL window

hello i have not found this in any of the books i have and im sure there is something for it out there. is there anyway to hide/get rid of an openGL window. i have a program that i am writting and i have options to display a certain window and then i also need to have the option to take it away. is there any command in glut or openGL that can do this for me?

any help is greatly appreciated.