Skip to content

Add back Remove OneDrive#3920

Merged
ChrisTitusTech merged 17 commits intoChrisTitusTech:mainfrom
GabiNun:Remove-OneDrive
Jan 27, 2026
Merged

Add back Remove OneDrive#3920
ChrisTitusTech merged 17 commits intoChrisTitusTech:mainfrom
GabiNun:Remove-OneDrive

Conversation

@GabiNun
Copy link
Contributor

@GabiNun GabiNun commented Jan 18, 2026

Type of Change

  • New feature
  • Bug fix
  • Documentation update
  • Refactoring
  • Hotfix
  • Security patch
  • UI/UX improvement

Description

This PR adds a OneDrive removal feature to WinUtil.

It uses icacls.exe to deny delete permissions on the OneDrive user files folder for all administrators, then runs the official Microsoft OneDrive uninstaller (64-bit only). After uninstallation, any remaining OneDrive folders are removed.

This approach ensures user files are preserved by preventing deletion during the uninstall process. Testing was performed by signing into OneDrive, running the Remove OneDrive tweak in WinUtil, and verifying that all files remained intact.

Issue Related to PR

Checklist

  • My code adheres to the coding and style guidelines of the project
  • I have performed a self-review of my own code
  • I have commented my code where necessary
  • I have made corresponding documentation changes
  • My changes generate no errors, warnings, or merge conflicts

@ChrisTitusTech ChrisTitusTech merged commit fcc57fd into ChrisTitusTech:main Jan 27, 2026
1 check passed
@GabiNun GabiNun deleted the Remove-OneDrive branch January 27, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants