For example, inside one folder there are 100 folders, and each folder has subfolders and files in it. How can I extract all the files from all the subfolders inside that main folder into that main folder, and then delete all the subfolders inside the main folder (for example, if the files are images or text files)?
