Hello and welcome to the Microsoft Community!
According to your feedback, you have encountered the problem of deleting windows 7 but the windows 10 image is corrupted and other files are deleted
First of all the situation you have mentioned is quite complex in which there could be multiple reasons for the problem. From your description I am not able to determine the exact cause as there are multiple operations and possible errors involved. However, I can provide some possible causes of the problem:
- Incorrect OS installation: Downloading and installing an operating system from an unofficial website may cause the system to become unstable or corrupted because it is unauthorized, so whether he carries viruses or not, and whether he makes changes to the other settings of your hard drive or not, I'm not sure
- Boot order setting problem: Setting the wrong boot order in BIOS may cause the system to always boot from the wrong hard disk.
- Operational errors: Unexpected operational errors may have occurred while formatting, installing an operating system or deleting a drive.
Since these problems can lead to system corruption and data loss, I recommend backing up your data before performing any important operations and making sure you get the OS installation media from official sources. In addition, for hard disk format conversion and so on are more risky operations, if there are any mistakes which will not be easily detected, it may lead to unknown errors.
In addition, you also mentioned that most of the affected programs are programs, so it is possible that there are problems with the program storage paths, or the way they are stored.
If you are creating Win10 flash drive media, creating media with files or programs inside the flash drive may cause some of the programs on your flash drive to be corrupted, because the contents of your flash drive may be changed during the creation of the system, so it is recommended that you use a new flash drive to create the media.
I hope you find the above helpful, and please feel free to let us know if you have any questions!
Kirito|Microsoft Community Support Specialist