How to Factory Reset a Laptop and Fix Wrong Microsoft Account Sync
Question details
The user needs to permanently erase their laptop and configure it as a new device with the correct Microsoft account to prevent old files from an incorrect account from reappearing.

- Product
- Windows, Microsoft OneDrive
- Device & OS
- Windows
- Scenario
- Resetting a laptop and configuring it as a new device with a different Microsoft account.
- Observed behavior
- Files from another laptop keep returning after a factory reset because the computer is still synchronizing with the wrong Microsoft or OneDrive account.
Ensure you have backed up any essential files you want to keep to an external hard drive and verify that you have the login credentials for the correct Microsoft account you intend to use.
Unlink OneDrive and Change the Windows Account
The quickest way to stop files from the wrong account from syncing is to unlink OneDrive and create a new local user profile, avoiding a time-consuming factory reset.
If you only want to stop files from a previous account from reappearing, a full system reset may not be necessary. Unlinking the OneDrive account stops the synchronization immediately, allowing you to safely delete local files without them returning.
Click the OneDrive cloud icon located in your Windows system tray, select the Help & Settings gear icon, and click on 'Settings'.
Navigate to the 'Account' tab within the OneDrive settings window and click on 'Unlink this PC'. Confirm the prompt to stop the syncing process.
Open File Explorer and manually delete the local files and folders that were previously downloaded by the incorrect OneDrive account.
Go to Windows Settings > Accounts > Family & other users. Add the correct Microsoft account as a new user with administrative privileges, log into it, and then remove the incorrect account profile from the computer.

Perform a Complete Factory Reset
If you want to completely erase the laptop and start fresh as a completely new device, a full factory reset is the best option.
Switch to WPS Office for a Hassle-Free Document Experience
After resetting your laptop and setting up your new Microsoft account, you will need a reliable office suite. WPS Office is a free, lightweight, and highly compatible alternative to Microsoft Office that lets you manage documents easily without dealing with forced cloud syncing issues.
- 1. Download the installer: Visit the official WPS Office website and download the free installation package for Windows.
- 2. Install WPS Office: Run the downloaded installer and follow the quick on-screen prompts to set up the software on your newly reset laptop.
- 3. Open and edit files: Launch WPS Office to instantly open, edit, and save your existing Microsoft Office documents without any formatting loss.

Frequently Asked Questions
Why do deleted OneDrive files keep coming back after I delete them?
If your OneDrive account is still linked and actively syncing to your PC, it will automatically download files from the cloud back to your local drive to keep both locations identical. You must unlink the account from the PC before deleting local files.
Can I change my primary Microsoft account without resetting my PC?
Yes. You can add a new user account through Windows Settings > Accounts > Family & other users, grant it administrator privileges, sign into the new account, and then safely delete the old user profile.
How do I stop OneDrive from syncing during the Windows setup?
When setting up Windows after a factory reset, carefully read the prompts during the Out-of-Box Experience (OOBE). Look for the option that says 'Only save files to this PC' or decline the offer to 'Back up your files with OneDrive'.




