This page contains two simple utility programs to hide windows from your desktop, or to perform other Similar tasks.
There's a command line client which can be used from scripts, or a GUI version which allows you to do Things in a much simpler manner.
(If you're a Unix user you may find XClose useful - it allows windows to be closed based upon their titles).