Check list of Applications if Running

I have a folder with Client Server applications. I need a script that will run continuously, looping through the apps in the folder and deleting any that are not running.

Any ideas?