logo
search
Uninstall & Reinstall Issues

How to Uninstall Microsoft 365 and Microsoft Defender on Mac

Aamir Naveed AkramAamir Naveed Akram Oct 1, 2026 868 views

Question details

The user needs to completely remove Microsoft 365 and Microsoft Defender from macOS Sonoma without leaving supporting components or residual files behind.

How to Completely Uninstall Microsoft 365 and Microsoft Defender on macOS
Product
Microsoft 365 and Microsoft Defender
Device & OS
macOS Sonoma
Scenario
Removing Microsoft applications completely from a Mac ecosystem.
Observed behavior
Dragging applications directly to the Finder Trash leaves supporting background components active, requiring specific terminal scripts and library cleanups for a clean uninstallation.
Before you start

Ensure you have administrator privileges on your Mac and completely quit all running Microsoft applications from the Dock before proceeding with the uninstallation.

Solution 1Recommended

Uninstall Microsoft Defender using macOS Terminal

Use the official Microsoft Defender Terminal script to completely remove the application and its background supporting components.

Because Microsoft Defender installs system-level extensions and background services on macOS, simply dragging the application to the Trash will not remove it completely. You must run the dedicated uninstallation script via Terminal.

1
Open Terminal

Navigate to Finder > Applications > Utilities, and double-click Terminal to launch it.

2
Execute the Uninstall Command

Type or paste the following command exactly: sudo '/Library/Application Support/Microsoft/Defender/uninstall/uninstall' and press Return.

3
Enter Administrator Credentials

When prompted, enter your macOS administrator password. Note that keystrokes will not be visible in Terminal as you type.

4
Restart the Mac

Wait for the uninstallation script to complete successfully, then restart your Mac to finalize the removal of all background components.

Uninstall Microsoft Defender using macOS Terminal
Command Not Found Error: If Terminal reports that the command was not found, verify that Microsoft Defender is installed in the default location. If you previously dragged it to the Trash, you may need to restore or reinstall it first to run the script properly.
Free Microsoft Office alternative

Switch to WPS Office for Mac

If you are uninstalling Microsoft 365 due to expensive subscription renewals or bulky software, WPS Office offers a powerful, lightweight, and completely free alternative tailored for macOS.

  1. 1. Download the Mac Installer: Visit the official WPS Office website and download the latest free version for macOS.
  2. 2. Install WPS Office: Open the downloaded .dmg file and drag the WPS Office icon into your Applications folder.
  3. 3. Open Your Existing Files: Double-click any previously created Word, Excel, or PowerPoint document to open it instantly in WPS Office with formatting preserved.
Completely free to use with no mandatory subscription required.Seamless format compatibility with Microsoft Office files (.docx, .xlsx, .pptx).Lightweight architecture that runs faster and saves valuable disk space on your Mac.All-in-one workspace featuring Word, Excel, PowerPoint, and PDF editing tools.
microsoft office alternative - wps office

Frequently Asked Questions

Can I simply drag Microsoft Defender to the Trash to uninstall it?

No. Moving Microsoft Defender to the Trash from Finder only deletes the application interface. The background security components and system extensions will remain active on your Mac. You must use the Terminal uninstall script for complete removal.

What happens to my Word and Excel documents when I uninstall Microsoft 365?

Your personal files and documents remain perfectly safe on your Mac's hard drive. Uninstalling the application only removes the software itself. You can continue to access and edit these files using alternative office suites like WPS Office.

Why does Terminal say 'command not found' when I try to uninstall Defender?

This error occurs if the Microsoft Defender uninstallation script is missing from its expected path (/Library/Application Support/Microsoft/Defender/uninstall/). This usually happens if the application was previously moved, partially deleted, or installed in a custom directory.