refactor clear folders