A Microsoft file hosting and synchronization service.
Your documents may be stored in OneDrive, on your PC's local hard drive, or in both locations. This depends on how OneDrive is configured on your computer. If you can access the same documents from other computers, that is a good indication that they are synchronized with OneDrive. You can also determine this by checking icons of files/folders in OneDrive - more at https://support.microsoft.com/en-us/onedrive/what-do-the-onedrive-icons-mean#tabpanel_1_file-explorer
When you use the Windows Reset this PC feature and select Remove everything, Windows removes your local files, applications, and settings. However, this does not delete files stored in your OneDrive cloud account. Those files remain accessible through your Microsoft 365 account, provided they have successfully synchronized to OneDrive.
To verify that your documents are safely stored in OneDrive, open File Explorer and look at the status icons next to your files and folders. A green checkmark indicates that a file is available locally and synchronized with OneDrive. A blue cloud icon indicates that the file is stored in OneDrive but is not necessarily downloaded to your computer. A circular synchronization icon indicates that synchronization is still in progress. You should make sure there are no synchronization errors or pending uploads before resetting the computer.
You can also verify your files independently by opening OneDrive on the web and signing in with the same Microsoft account you use on your PC. Check that your Documents, Desktop, Pictures, and any other important folders contain the files you expect to retain. Opening a few documents directly from the website is also a good way to confirm that they are accessible in the cloud.
Before resetting your PC, first, open the OneDrive application and make sure synchronization has completed successfully. Next, sign in to OneDrive through a web browser and verify that your important documents are present. If you have files stored in other locations on your C: drive that are not part of your OneDrive folders, copy them to OneDrive or another backup location. Finally, once you have verified that everything is safely stored in the cloud, go to Settings > System > Recovery > Reset this PC, select Remove everything, and follow the instructions. If available, select Clean data to make it more difficult for someone receiving the PC to recover your previously stored files.
One additional precaution: before donating the computer, make sure you have disconnected your Microsoft account and signed out of applications such as Office, OneDrive, and any other services associated with your account. You can also remove the donated PC from your Microsoft account's device list at https://account.microsoft.com/devices.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin