How to uninstall Microsoft Office 365, 2021 and 2019 apps?

Description

This document provides you with the steps required to uninstall Microsoft 365, 2019 or 2021 through Endpoint Central.

Steps

To uninstall Microsoft 365, 2019 or 2021, follow the steps given below:

Download the Office 365 Tool

  1. Download: Download Microsoft office 365 tool from the Microsoft website (https://www.microsoft.com/en-us/download/details.aspx?id=49117).
  2. Store: Store in the network share, if you want to uninstall the software from computers within the network. If the requirement is to uninstall the application from computers located in a remote location, use HTTP upload.

Note: The network share should have read permissions to everyone in the group and should be accessible from all the computers from which the application is to be uninstalled.

uninstall 1

Extract the contents of the EXE

  1. To extract the downloaded package, navigate to the command prompt and run this command -

    <file path>\<Office_Deployment_FileName.exe> /extract:<file path>\Destination Folder /quiet

Note: Make sure to enter the correct file name in the command prompt before extracting the package. Verify the file name by checking the download page from where the file was originally obtained.

uninstall 2

Customize the Uninstallation

  1. Edit: Open the Configuration.xml file for the corresponding ve from the extracted folder and the edit the file as given below, 

    <Configuration>
    <Display level="None" AcceptEULA="True" />
    <Property name="FORCEAPPSHUTDOWN" value="True" />
    <Remove>
    <Product Id="O365ProPlusRetail"></Product>
    <Product Id="ProjectProRetail"></Product>
    <Product id="VisioProRetail"></Product>
    </Remove>
    </Configuration>

    • To remove any other Products, that are supported by the Office Deployment Tool, refer to the article here and modify the ProductID as required to remove the particular application.
    • Setting FORCEAPPSHUTDOWN value as "True" will close all the microsoft office applications forcibly, before removing the application. This may cause any data loss if Microsoft Office applications were running in the background. If this feature is not required, set FORCEAPPSHUTDOWN value to be FALSE. This will not remove the application, if any of the applications are running in the machine.
  2. Save: Save the file after making the customization changes.

Add the package

  1. Click the Software Deployment tab
  2. Click Add Package
  3. Select the package type as MSIEXEC/EXE/ISS/Command 
  4. Specify a name for the application
  5. Choose Network Path/HTTP Path based on your requirement. If the deployment method chosen is Http Path, Zip the files (setup.exe and configuration.xml) in the Office setup folder and Add the zip file in the Package. Provide the installation commands as mentioned below in the table.
  6. uninstall 3

    Content
    Share Path / CD
    Http
    Uninstallation Command

    "Share Path\setup.exe /configure Share Path\configuration.xml"

    setup.exe /configure configuration.xml

    Example

    "\\computer_name\DCSWRepository\Office365Extracted\setup.exe" /configure "\\computer_name\DCSWRepository\Office365Extracted\configuration-Office365-x64.xml"

    setup.exe /configure configuration-Office365-x64.xml

  7. Click Add Package
  8. uninstall 4

Deploy to target computers

  1. Select the package that you added
  2. Click Uninstall Software
  3. Enter a name and description for the configuration
  4. Under package settings, choose operation type as Uninstall
  5. Configure the deployment settings
  6. Choose the target computers
  7. Specify the schedule options, if required
  8. Click Deploy