Is there a way to kill all instances of httpd daemon that are orphaned using a shell script?

If so, how