Remove the unnecessary folders.