clean directories and deprecated files