Skip to content

This repository contains a macOS script, `Remove_MicrosoftSuite.sh`, for fully uninstalling Microsoft Office Suite, OneDrive, and Microsoft Defender. It’s designed for users needing a complete removal for troubleshooting, cleanup, or decommissioning purposes.

License

Notifications You must be signed in to change notification settings

Darknight92228/MacRemove-MS-Office-Onedrive-Defender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Microsoft Office, OneDrive, and Microsoft Defender Removal Script

Overview

This script is designed to completely remove Microsoft Office Suite, OneDrive, and Microsoft Defender from a macOS system. It force-quits any running Microsoft applications, removes them from the /Applications directory, and deletes all associated files from both system-wide and user-specific directories.

Features

  • Force-quits all Microsoft Office Suite applications, OneDrive, Microsoft AutoUpdate, and Microsoft Defender.
  • Removes Microsoft Office Suite applications, OneDrive, and Microsoft Defender from /Applications.
  • Deletes associated files from /Library and user-specific directories.
  • Removes Office, OneDrive, and Microsoft Defender icons from the macOS Dock.

Microsoft Office Suite Applications

The Microsoft Office Suite includes:

  • Microsoft Word
  • Microsoft Excel
  • Microsoft PowerPoint
  • Microsoft Outlook
  • Microsoft OneNote
  • Microsoft Teams
  • Microsoft AutoUpdate

Usage

Prerequisites

  • Ensure you have administrative privileges, as the script requires sudo to delete system files.
  • If dockutil is installed, the script will also remove the Office Suite and OneDrive icons from the Dock. Otherwise, it will skip this step.

Running the Script

  1. Clone the repository:

    git clone https://github.com/Darknight92228/MacRemove-MS-Office-Onedrive-Defender.git
  2. Navigate to the script directory:

    cd MacRemove-MS-Office-Onedrive-Defender
  3. Make the script executable:

    chmod +x Remove_MicrosoftSuite.sh
  4. Run the script:

    sudo ./Remove_MicrosoftSuite.sh

Caution

  • Irreversible Action: This script will permanently delete Microsoft Office Suite, OneDrive, and Microsoft Defender along with all associated files. Make sure you have backups if needed.
  • Exit on Running Applications: If any Microsoft applications are still running after attempts to quit, the script will exit to prevent partial uninstallation.

Contributing

Feel free to fork this repository and submit pull requests. Any improvements or additional features are welcome.

License

This project is licensed under the GNU General Public License v3.0 (GPL-3.0). See the LICENSE file for details.

About

This repository contains a macOS script, `Remove_MicrosoftSuite.sh`, for fully uninstalling Microsoft Office Suite, OneDrive, and Microsoft Defender. It’s designed for users needing a complete removal for troubleshooting, cleanup, or decommissioning purposes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages