The present invention generally relates to a method for removing foreign matter using a supercritical or subcritical medium, and more particularly relates to a method for forming a dielectric film such as a silicon dioxide film or ferroelectric film, a semiconductor device and a film deposition apparatus.