Remove unneeded folders.