Diatomeceous earth works when it is dry, or as a dry top dressing to prevent the gnats from emerging, but, as has been stated, DE is very dusty and fans will suck it in and blow it out. You'll have it everywhere before you know it. Plus, it's not good to breathe it and that's almost unavoidable...