Yes, you can completely uninstall Microsoft Office 365 from Windows, but you must use PowerShell and follow the right steps to avoid leaving residual files or services running. This removes the apps, deactivates services, and clears your account data—not just the installed programs. Run this only on a clean system or after backing up critical files.
What You'll Need
- A PC running Windows 10 or 11, with administrative rights.
- An internet connection (to verify version details and download tools).
- PowerShell Command Prompt (run as administrator).
- A backup of important Office files (like documents or templates) from your user folder (e.g., `C:\Users\[YourUsername]\Documents\`).
- Optional: An uninstall log file for troubleshooting (set output path below).
Step-by-Step
- Check your Office version and product type
- Open PowerShell as administrator (search "PowerShell," right-click Start > Run as admin).
- Run this command to list installed Office versions and product keys:
Get-WmiObject -Namespace "root\CLSID" -Class SoftwareInstallation | Where-Object {$_.ProductName -like "*Microsoft Office*"} | Select-Object ProductCode, ProductName, Version - Note the
ProductCodeandVersion—you’ll need them later. For example, if it shows "Microsoft 365 Subscription" (O365), you’ll need a different uninstall method than a perpetual license. If unsure, proceed to step 2.
- Uninstall Office 365 via PowerShell (recommended)
- Run this command to remove Office 365 apps and deactivate services:
Get-Package -Name "Microsoft*Office*" | Uninstall-Package -Force -ErrorAction SilentlyContinueThis removes all Office apps (Word, Excel, PowerPoint, etc.) and associated files.
- To also remove Office services (like OneDrive or Outlook), add:
Stop-Service -Name OfficeSoftwareProtectionPlatform; Set-Service -Name OfficeSoftwareProtectionPlatform -StartupType DisabledThis stops the Windows Protection Service tied to Office.
- To log uninstall steps for troubleshooting, redirect output to a file:
Get-Package -Name "Microsoft*Office*" | Uninstall-Package -Force -ErrorAction SilentlyContinue | Out-File "C:\Temp\OfficeUninstallLog.txt"
- Run this command to remove Office 365 apps and deactivate services:
- Clean up leftover files and registry entries
- Use this PowerShell script to remove Office-related folders and registry keys:
Remove-Item -Path ( Get-ChildItem -Path "$env:ProgramFiles\Microsoft Office*" -Recurse -ErrorAction SilentlyContinue | Get-ChildItem -Path "$env:ProgramFiles(x86)\Microsoft Office*" -Recurse -ErrorAction SilentlyContinue ) -Force -Recurse -ErrorAction SilentlyContinue Remove-Item -Path ( Get-ChildItem -Path "$env:LOCALAPPDATA\Microsoft\Office*" -Recurse -ErrorAction SilentlyContinue ) -Force -Recurse -ErrorAction SilentlyContinue Remove-Item -Path ( Get-ChildItem -Path "$env:ProgramData\Microsoft\Office*" -Recurse -ErrorAction SilentlyContinue ) -Force -Recurse -ErrorAction SilentlyContinue Remove-Item -Path "$env:USERPROFILE\AppData\Local\Microsoft\Office\*" -Force -Recurse -ErrorAction SilentlyContinueWarning: This deletes all Office files in those folders. Back up critical documents first.
- To clean the registry (only if you’re comfortable with this advanced step), run:
Unregister-Product -ProductID $(Get-Package -Name "Microsoft*Office*" | Select-Object ProductCode).ProductCodeFirst, identify your ProductCode from step 1. Use
Get-WmiObject -Namespace "root\CLSID"to list all Office entries, then paste the exact code (e.g., "{00000000-0000-0000-C000-000000000046}") for your version.
- Use this PowerShell script to remove Office-related folders and registry keys:
- Remove OneDrive and sync files
- If installed, uninstall OneDrive via:
Get-Package -Name "*OneDrive*" | Uninstall-Package -Force - Clear sync folders manually:
Remove-Item -Path "$env:LOCALAPPDATA\Microsoft\OneDrive" -Force -RecurseRemove-Item -Path "$env:USERPROFILE\OneDrive" -Force -Recurse - Delete the OneDrive taskbar icon and the "OneDrive" shortcut from the Start menu.
- If installed, uninstall OneDrive via:
- Verify full removal
- Search your PC for "Office" and delete any remaining shortcuts or icons.
- Search Windows for these files:
- "Office" folder in Program Files or Program Files (x86).
- "Office" in AppData or LocalAppData.
- Check for lingering services:
Get-Service | Where-Object {$_.DisplayName -like "*Office*"}If any remain, stop and disable them.
Common Mistakes
- Using the traditional Windows Uninstaller
Right-clicking Office in the Start menu or Control Panel only removes the GUI installer, leaving service wrappers, OneDrive, and leftover files. This method won’t fully deactivate your subscription or remove cloud services.
- Skipping the registry cleanup
Some Office versions store licenses or account data in the registry. Unregistering the product (step 2c) is often necessary to fully disable a subscription.
- Not stopping services before deletion
If Office services (like OSPP) remain running, they may attempt to re-install Office automatically. Always stop them with
Stop-Service OfficeSoftwareProtectionPlatformfirst. - Assuming "Uninstall" = "Remove all"
Some Office versions include trialware (like trial versions of PowerPoint) that won’t uninstall cleanly. Always check the Package list with
Get-Packagefirst.
Tips
- For O365 subscriptions
If you have a Microsoft 365 or Office 365 subscription, uninstalling doesn’t cancel the subscription—you’ll still need to deactivate it to avoid monthly charges. Sign into your Microsoft account via Settings > Accounts > Your info and remove your Office license.
- Use "Cleanmgr" for disk cleanup
After removal, run
Cleanmgr /sageskip:allin Command Prompt to remove Office-related junk files. - Windows 11 specific
On Windows 11, some Office services may hide behind "Windows Features." Enable them via:
Turn Windows features on or off(search in Start) and uncheck "Microsoft Office components." - Mobile devices
If you also use Office on phones or tablets, uninstall apps from the Microsoft Store and remove them from your account via Settings > Accounts > Your Microsoft account > Apps.
Troubleshooting
- Office apps won’t uninstall
If you see errors like "Cannot uninstall package," try this PowerShell command to force-uninstall:
Get-Package -Name "Microsoft*Office*" | Uninstall-Package -Force -ErrorAction Ignore | Get-WmiObject -Namespace "root\CLSID" -Class SoftwareInstallation | Where-Object {$_.ProductCode -eq $(Get-Package -Name "Microsoft*Office*" | Select-Object ProductCode | Select-Object -First 1).ProductCode} | Remove-WmiObject -ErrorAction SilentlyContinueIf that fails, reboot the PC after uninstalling via the traditional method (Settings > Apps > Installed apps).
- OneDrive keeps syncing
After removing OneDrive, manually clear sync queues:
Remove-Item -Path "$env:LOCALAPPDATA\Microsoft\OneDrive\Data\*" -Recurse -ForceThen sign out of your Microsoft account via Settings > Accounts > Sign out to force a full logout.
- Registry errors during cleanup
If you encounter "Access denied" errors during registry cleanup, use regedit (right-click > Run as admin) and manually delete keys under:
- HKEY_CURRENT_USER\Software\Microsoft\Office\OfficeX.X
- HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Office\OfficeX.X
Replace
OfficeX.Xwith your actual version number (e.g., 16.0 for Office 2016). - Office still appears in Task Manager
Check for hidden services or background tasks. Run:
Taskkill /IM outlook.exe /F; Taskkill /IM winword.exe /F; Taskkill /IM excel.exe /FIf Office apps launch again after reboot, reinstall via Settings > Apps > Installed apps > Office and delete them again.
- Subscription won’t deactivate
After uninstalling, visit office.com/activate in a browser and enter your product key to deactivate the subscription. If you see "This key isn’t valid," your product may have expired or been previously used.
Frequently Asked Questions
Will this remove all traces of Office 365?
Yes, this process removes all installed Office apps, services (like OSPP), and leftover files. However, some minor traces (like a few registry keys) may persist. Run the cleanup steps in full to minimize them.
Can I remove Office 365 from a domain-joined Windows PC?
Yes, but you must run PowerShell as a domain admin. Use the traditional uninstaller or use the method above, but ensure you’re logged in with elevated permissions. Some domain policies may block registry changes—contact IT support if you encounter access errors.
What if I have multiple Office versions (e.g., Office 365 + Office 2019)?
The PowerShell commands will target all Office packages. Use the Get-Package command first to list them all, then run the uninstall script. If versions conflict, uninstall each individually:
Get-Package -Name "MicrosoftOffice*2019*" | Uninstall-Package -Force
Does this method work for Office installed via group policy?
Yes, but you may need to use the traditional uninstaller (Settings > Apps) first to remove the deployed packages. Then run the PowerShell cleanup as described. Group policy installations often leave more residual files than standalone installs.
How do I reactivate Office after uninstalling?
After uninstalling, you can reactivate Office by entering your product key at office.com/activate. If you don’t have a key, sign into your Microsoft account via Settings > Accounts > Your info to reactivate a subscription or purchase a new license.
Can I safely remove Office 365 from a Windows Server?
The same PowerShell commands apply, but servers often have additional dependencies (like ADFS or Exchange). Remove Office via the traditional method first or use:
Repair-MsolServicePrincipal -ServicePrincipalName "outlook.office.com" -Deactivate
If you’re unsure, contact your IT administrator before proceeding.