Added the removal of .settings directory