Skip to main content
All CollectionsKnowledge BaseEnterprise WorkloadsTroubleshooting - Enterprise Workloads
Bash script to uninstall Phoenix agents and remove all directories on Windows
Bash script to uninstall Phoenix agents and remove all directories on Windows
Updated over 6 months ago

This article applies to:

  • OS: Windows

  • Product edition: Phoenix

Overview

This article provides the single script to uninstall Phoenix agents from a Windows system and remove all its directories from their hosts.

Uninstall Phoenix agents from a Windows host

  1. Use any text editor to create the bash file.

  2. Create the bash file with the following script.

    echo on 
    net stop PhoenixCPHService >> "C:\UninstallPhoenix.log" 2>&1 
        timeout -t 4 
    wmic product where "name like '%%Druva Phoenix%%'" call uninstall /nointeractive >> "C:\UninstallPhoenix.log" 2>&1 
        timeout -t 2 
    rmdir "C:\ProgramData\Phoenix" /S /Q>> "C:\UninstallPhoenix.log" 2>&1 
        rmdir "C:\Program Files\Druva\Phoenix Agent" /S /Q >> "C:\UninstallPhoenix.log" 2>&1 
    timeout -t 2 
        :END

    📝 Note
    To uninstall Phoenix agents, run the bash file as an administrator.


Did this answer your question?