Removes unnecessary folders.