Unlinking a Nonexistent OneDrive Account in Windows 10
In this article, we will discuss the process of unlinking a OneDrive account in Windows 10, specifically when you encounter an issue where the selected cloud icon does not take you through the unlinking process.
Background
OneDrive is a file hosting service and synchronization service operated by Microsoft as part of its suite of Office Online services. OneDrive allows users to sync files and folders on their devices to the cloud, making it easy to access and share files from any device.
If you have two different OneDrive accounts linked to your PC, you may want to unlink one of them. However, if you encounter an issue where the selected cloud icon does not take you through the unlinking process, this article will provide you with a solution to this problem.
Issue: OneDrive Cloud Icon Not Unlinking
If you have two different OneDrive accounts linked to your PC and you want to unlink one of them, you can do so by right-clicking on the OneDrive icon in the system tray and selecting "Settings." From there, you can click on the "Account" tab and select "Unlink this PC." However, if the selected cloud icon does not take you through the unlinking process, this can be frustrating.
Solution
If you are experiencing this issue, you can try the following steps to unlink your OneDrive account:
- Close the OneDrive application.
- Press the Windows key + X and select "Task Manager" from the list.
- In the "Process" tab, find and end the "OneDrive" process.
- Open File Explorer and navigate to "C:\Users\%username%\AppData\Local\Microsoft\OneDrive\Update\".
- Find and delete the "OneDriveSetup.exe" file.
- Restart your PC.
- Open File Explorer and navigate to "C:\Windows\System32\".
- Find and delete the "OneDrive.exe" file.
- Reinstall OneDrive by going to the Microsoft OneDrive website and downloading the latest version.
- Once OneDrive is installed, you should be able to unlink your account by right-clicking on the OneDrive icon in the system tray and selecting "Settings," then clicking on the "Account" tab and selecting "Unlink this PC."
Unlinking a OneDrive account in Windows 10 should be a straightforward process. However, if you encounter an issue where the selected cloud icon does not take you through the unlinking process, the steps outlined in this article should help you resolve the issue. By following the steps outlined in this article, you should be able to unlink your OneDrive account and free up space on your PC for other files and folders.
References
// Example code block in Python
def unlink\_onedrive():
"""
Unlink OneDrive account from Windows 10 PC.
"""
import subprocess
# Close the OneDrive application
subprocess.run(["taskkill", "/im", "OneDrive.exe", "/f"])
# Delete the OneDriveSetup.exe file
subprocess.run(["del", "C:\\Users\\%username%\\AppData\\Local\\Microsoft\\OneDrive\\Update\\OneDriveSetup.exe"])
# Restart the PC
subprocess.run(["shutdown", "/r", "/t", "0"])
# Reinstall OneDrive
subprocess.run(["start", "https://www.microsoft.com/en-us/microsoft-365/onedrive/download"])