To remove OneDrive and its backups without having them deleted from your local system, you can follow these steps:
- Unlink OneDrive: This will stop syncing your files with OneDrive. To do this:
- Right-click the OneDrive cloud icon in the system tray (bottom right corner of your screen).
- Click on Settings.
- In the Account tab, click on Unlink this PC.
- Stop OneDrive from starting automatically:
- In the same settings window, go to the Settings tab.
- Uncheck the box that says Start OneDrive automatically when I sign in to Windows.
- Change backup settings:
- Go to the Backup tab in the OneDrive settings.
- Click on Manage backup and deselect the folders you do not want to back up.
- Uninstall OneDrive:
- Open Settings (Windows + I).
- Go to Apps > Apps & features.
- Find Microsoft OneDrive in the list, click on it, and select Uninstall.
- Deleting files: After unlinking and uninstalling OneDrive, you should be able to delete files from your local system without them being removed from OneDrive. If files are still linked, ensure that they are not in the OneDrive folder on your PC before deleting.
- Using Command Prompt: If you continue to face issues, you can also reset OneDrive using Command Prompt:
- Press Windows + R, type
cmd, and press Enter. - Type the command:
taskkill /f /im OneDrive.exeto stop OneDrive. - Then type:
C:\Program Files\Microsoft OneDrive\OneDrive.exe /resetto reset OneDrive.
- Press Windows + R, type
These steps should help you regain control over your files and remove OneDrive from your system without losing your data locally.
References: