When you reset your PC, you can choose whether you want to keep your personal files or remove them, then have Windows reinstalled. [...]
Your PC settings let you choose where files will be saved by default. You can save files on your PC or to OneDrive by default and sync [...]