Delete all apps in a space

Hi,

I’ve been wanting to do this for a long time. Does anyone know how you can quit all applications that are based in a space.

Thanks,
kel

Say it’s the current space.