A Microsoft file hosting and synchronization service.
Unlink the account inside the OneDrive Windows app—not only from the Microsoft account device list—then uninstall OneDrive if this PC should remain permanently separate.
1. Preserve files needed on this PC
Before disconnecting, open File Explorer → OneDrive and check the status icons:
- A cloud icon means the file is online-only.
- For anything needed locally, right-click the file or folder and select Always keep on this device.
- Wait for those items to display solid green check marks.
Do not delete the OneDrive folder yet. Unlinking or uninstalling does not delete cloud data, but online-only files will not be usable locally after OneDrive is removed.^1^
2. Stop Desktop, Documents, and Pictures backup
If OneDrive is backing up these Windows folders:
- Select the OneDrive cloud icon in the notification area.
- Select Help & Settings → Settings.
- Open Sync and backup → Manage backup.
- Turn off each enabled folder.
- When prompted, select Keep the files only on my PC.
If OneDrive reports that some files cannot be moved, download them first with Always keep on this device, then repeat the operation.^2^
This backup setting is separate from quitting the application; quitting only stops synchronization temporarily.
3. Unlink through OneDrive itself
Since quitting and removing the PC from the Microsoft account device list did not hold, use OneDrive’s own account control:
- Select the OneDrive cloud icon.
- Select Help & Settings → Settings.
- Open Account.
- Select Unlink this PC → Unlink account.
This disconnects the local OneDrive sync client from the cloud account.^3^
4. Uninstall the sync client
To keep OneDrive from being started and signed in again:
- Open Start → Settings → Apps → Installed apps.
- Find Microsoft OneDrive.
- Select the three-dot menu → Uninstall.
- Restart Windows.
Microsoft states that uninstalling OneDrive from Windows 10/11 does not remove files stored in OneDrive online.^4^
Afterward, verify that Desktop, Documents, and Pictures point to ordinary local locations rather than folders beneath OneDrive. Do not delete the old OneDrive folder until the local files have been checked.
If OneDrive signs itself in again before uninstalling
Clear its saved pre-sign-in configuration:
- Press Windows key + R.
- Enter:
%localappdata%\Microsoft\OneDrive\settings
- Delete
PreSignInSettingsConfig.json. - Return to OneDrive and perform Account → Unlink this PC again.
- Uninstall OneDrive immediately afterward.
Microsoft documents deleting that file as the Windows procedure for clearing OneDrive sign-in credentials.^3^
Removing this PC from the Microsoft account’s device page manages the account’s device association; the controls that stop file synchronization are Manage backup, Unlink this PC, and—when permanent separation is wanted—Uninstall.
References