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

  1. Check your Office version and product type
    1. Open PowerShell as administrator (search "PowerShell," right-click Start > Run as admin).
    2. 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
    3. Note the ProductCode and Version—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.
  2. Uninstall Office 365 via PowerShell (recommended)
    1. Run this command to remove Office 365 apps and deactivate services: Get-Package -Name "Microsoft*Office*" | Uninstall-Package -Force -ErrorAction SilentlyContinue

      This removes all Office apps (Word, Excel, PowerPoint, etc.) and associated files.

    2. To also remove Office services (like OneDrive or Outlook), add: Stop-Service -Name OfficeSoftwareProtectionPlatform; Set-Service -Name OfficeSoftwareProtectionPlatform -StartupType Disabled

      This stops the Windows Protection Service tied to Office.

    3. 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"
  3. Clean up leftover files and registry entries
    1. 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 SilentlyContinue

      Warning: This deletes all Office files in those folders. Back up critical documents first.

    2. 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).ProductCode

      First, 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.

  4. Remove OneDrive and sync files
    1. If installed, uninstall OneDrive via: Get-Package -Name "*OneDrive*" | Uninstall-Package -Force
    2. Clear sync folders manually: Remove-Item -Path "$env:LOCALAPPDATA\Microsoft\OneDrive" -Force -Recurse Remove-Item -Path "$env:USERPROFILE\OneDrive" -Force -Recurse
    3. Delete the OneDrive taskbar icon and the "OneDrive" shortcut from the Start menu.
  5. Verify full removal
    1. Search your PC for "Office" and delete any remaining shortcuts or icons.
    2. Search Windows for these files:
      • "Office" folder in Program Files or Program Files (x86).
      • "Office" in AppData or LocalAppData.
    3. 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 OfficeSoftwareProtectionPlatform first.

  • 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-Package first.

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:all in 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

  1. 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 SilentlyContinue

    If that fails, reboot the PC after uninstalling via the traditional method (Settings > Apps > Installed apps).

  2. OneDrive keeps syncing

    After removing OneDrive, manually clear sync queues: Remove-Item -Path "$env:LOCALAPPDATA\Microsoft\OneDrive\Data\*" -Recurse -Force

    Then sign out of your Microsoft account via Settings > Accounts > Sign out to force a full logout.

  3. 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.X with your actual version number (e.g., 16.0 for Office 2016).

  4. 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 /F

    If Office apps launch again after reboot, reinstall via Settings > Apps > Installed apps > Office and delete them again.

  5. 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.