Skip to main content



How can we help you?


Druva Documentation

Bash script to uninstall Phoenix agents and remove all directories on Windows

Heads up!

We've transitioned to a new documentation portal to serve you better. Access the latest content by clicking here.


This article applies to:

  • OS: Windows
  • Product edition: Phoenix


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 

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


  • Was this article helpful?