Use Ant! <delete includeemptydirs="true" > <fileset dir="${checkout.dir}" defaultexcludes="false" > <include name="**/.svn/" /> </fileset> </delete>