Remove OneDrive
Overview
This category contains privacy scripts for Windows.
These changes use Windows system commands to update your settings.
Microsoft OneDrive (formerly SkyDrive) is a file hosting service operated by Microsoft 1. First launched in August 2007, it enables registered users to share and synchronize their files 1.
Data stored on OneDrive is subject to monitoring by Microsoft 2. There's been reports of Microsoft accessing and altering your personal files when syncing on OneDrive 3 4.
Uninstalling OneDrive is recommended by Microsoft to optimize Windows VDIs 5.
Be careful running these scripts. This category includes scripts with high impact:
- 🟡 Some recommended scripts only if you understand its implications. Some non-critical or features may no longer function correctly after running this this category.
- 🟢 Some safely recommended scripts. Safe-to use for any user.
Implementation Details
-
Language: batch
-
Scripts Count: 11 scripts
-
Required Privileges: Administrator rights
-
Compatibility: Windows only
-
Reversibility: All changes can be reverted
Apply now
These scripts are written using Batch (batchfile) scripting language.
Choose one of two ways to apply:
- Automatically via privacy.sexy: The easiest and safest option.
- Manually by downloading: Requires downloading a file.
Alternative 1. Apply with Privacy.sexy
privacy.sexy is free and open-source application that lets securely apply this action easily.
It allows selectively choose parts of this action to conduct. You can fully restore this action (revert back to the original behavior) using the application. Additionally, you can apply only the recommended scripts, instead of applying all of the scripts.
privacy.sexy instructions
- Open or download the desktop application
- Search for the category name:
Remove OneDrive
. - Check the category by clicking on the checkbox of the category.
- Click on Run button at the bottom of the page.
Alternative 2. Download
You can choose to apply only scripts with less impact or also those with higher impact:
Consider restarting your computer for all changes to take affect.
This action is completely reversible, you can restore your changes to the initial/default state. The restore/revert methods provided here can help you fix issues.
If something goes wrong, use the Revert script provided above.
Standard
This script includes only Standard recommendation level.
Standard scripts in this category is recommended for all users. They help to improve privacy without affecting stability.
Download only standard scripts by clicking on the button:
Restore these changes if you decide to revert them by downloading the restore script:
Strict
This script includes Standard and Strict recommendation levels.
This script is only recommended if you understand their implications of every single change. Some non-critical or features may no longer function correctly after running this script.
Download Strict scripts:
Restore these changes if you decide to revert them by downloading the restore script:
Explore further
This category includes total of 11 scripts but no subcategories.
Explore its 11 scripts:
Kill OneDrive process
It stops the execution of OneDrive. Main OneDrive process is "OneDrive.exe" and it is installed in "\\Microsoft\\OneDrive\\OneDrive.exe".
Remove OneDrive from startup
OneDrive starts on every boot in both Windows 10 and 11 by default. It's started through "OneDrive" "REG_SZ" entry in "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run". It is found on both Windows 10 (since 21H2, missing in 20H2) and Windows 11 (since 23H2). The startup command is ""\\Microsoft\\OneDrive\\OneDrive.exe" /background".
Remove OneDrive through official installer
This script will call official Microsoft uninstaller that will uninstall the application but residual files will be left. You won't lose data by uninstalling OneDrive from computer because they will be stored in cloud. Running OneDrive client setup package ("OneDriveSetup.exe") with the "/uninstall" command line switch uninstalls OneDrive. On Windows 10, the setup package is found on different folders ("System32" or "SysWOW64") based on the CPU architecture. On Windows 11, the setup package is a...
Remove OneDrive user data and synced folders
This script deletes the OneDrive directory and all stored data from your profile. OneDrive usually saves your data in the "%USERPROFILE%\\OneDrive" directory, also known as the OneDrive folder or OneDrive root directory. By default, OneDrive stores user data in folder called OneDrive. For multiple accounts, files may be in OneDrive - Personal or OneDrive - CompanyName folders. OneDrive can synchronize default Windows folders like Documents, Pictures, Music, and Desktop. These fo...
Remove OneDrive installation files and cache
This script removes OneDrive installation directories, application data, temporary files, and cache. Identified by the community and confirmed through testing, these folders include: "C:\\OneDriveTemp": A location for temporary cache files. • "C:\\ProgramData\\Microsoft OneDrive": Stores data used in setting up OneDrive. • "C:\\Users\\\\AppData\\Local\\Microsoft\\OneDrive": OneDrive installation directory. | Directory | Windows 11 (since 22H2) | Windows 10 (since 22H2) | | --------- |:---------...
Remove OneDrive shortcuts
This script ensures the removal of all OneDrive shortcuts from your system, even after uninstallation or cleanup. Erasing these shortcuts improves the security and privacy of your computer system, lessening the potential access points for unwanted entities. Moreover, the removal of unused shortcuts results in a more organized and efficient system, enhancing your user experience by preventing any confusion from dead shortcuts. Shortcuts that link to OneDrive are stored in various locations, such ...
Disable OneDrive usage
This script prevents: Keeping OneDrive files in sync with the cloud. • Users from automatically uploading photos and videos from the camera roll folder. • Users from accessing OneDrive from the OneDrive app and file picker. • Windows Store apps from accessing OneDrive using the WinRT API. • OneDrive from appearing in the navigation pane in File Explorer. Setting "DisableFileSyncNGSC" group policy prevents OneDrive from working on both Windows 10 and 11. Windows 8 uses older "DisableFileSync" key...
Disable automatic OneDrive installation
This script prevents OneDrive from automatically reinstalling itself. OneDrive, Microsoft's cloud storage service, can automatically reinstall itself after being uninstalled on older Windows 10 versions. This is done through a startup entry that runs "OneDriveSetup.exe", which silently installs OneDrive when a user logs in. The script enhances privacy by stopping OneDrive from reinstalling without user consent. This prevents unwanted data collection and synchronization. It also boosts system per...
Remove OneDrive folder from File Explorer
File Explorer shows OneDrive to allow you to access files stored in OneDrive (stored online and locally cached). CLSID for OneDrive is "018D5C66-4533-4307-9B53-224DE2ED1FE6" for both Windows 10 and 11. Changing pinning option for this key removed OneDrive from navigation file in File Explorer. This CLSID includes "System.IsPinnedToNameSpaceTree" as value as "1" after clean installation in both Windows 10 and Windows 11.
Disable OneDrive scheduled tasks
This script disables the scheduled tasks associated with Microsoft OneDrive that typically run maintenance activities such as auto-updates and data collection. Disabling these tasks impacts OneDrive's automatic background update process. By default, Windows 10 (since 22H2) and Windows 11 (since 22H2) include the following tasks: "OneDrive Standalone Update Task" • "OneDrive Reporting Task" These tasks are enabled by default and lack official documentation from Microsoft. They can be identified b...
Clear OneDrive environment variable
Since Windows 10 1809, Microsoft introduced "%ONEDRIVE%" environment variable to reach OneDrive through an alias. This variable is redundant when OneDrive is undesired. This script deletes "OneDrive" environment variable. "OneDrive" key at "HKCU\\Environment" is found on both Windows 10 (since 21H2, missing in 20H2) and Windows 11 (since 23H2).
Explore Categories
This action belongs to Remove bloatware category. This category configures Windows using 215 scripts. These scripts are organized in 35 categories. The category includes 1 subscripts and 9 subcategories that include more scripts and categories. Read more on category page ▶
Support
This website relies on your support.
Your donation helps keep the project alive and improves its content ❤️.
Share this page: