Skip to main content
All CollectionsEnterprise WorkloadsProtect File ServersManage File Servers
Uninstall agent from File Server (Linux) through command line
Uninstall agent from File Server (Linux) through command line
Updated over 7 months ago

This topic describes how to uninstall NAS Proxy from a Linux server.

Before you begin

Ensure that you have root user privileges on the Linux server.

Uninstall from CentOS, RHEL, or SLES

  1. Open the command prompt.

  2. Run the following command to find the old package name of the Druva installer:
    rpm -qa | grep druva

  3. Run the following command to uninstall the old package:
    rpm -e <old_package_name>

    When you are prompted Do you want to cleanup all Phoenix config and data files: [yes/no]? [default: no]

    • Enter yes if you want to delete the server from Druva. If you choose this option, you will have re-register the server if you plan to install the Enterprise Workloads agent at a later time.

    • Enter no if you want to manually upgrade the Enterprise Workloads agent. However, if you plan on completely uninstalling the agent and you still select no, you have to complete the uninstall.

  4. To force uninstall if any conflicts happen due to ungraceful removal of files, run the following command:
    rpm -e --noscripts <old_package_name>

Uninstall from Ubuntu

  1. Open the command prompt.

  2. Run the following command to find the old package name of the Druva installer:
    dpkg -la | grep druva

  3. Run the following command to uninstall the old package:
    dpkg --purge <package_name>

    When you are prompted Do you want to cleanup all Phoenix config and data files: [yes/no]? [default: no]:

    • Enter yes if you want to delete the server from Druva. If you choose this option, you will have re-register the server if you plan to install the Enterprise Workloads agent at a later time.

    • Enter no if you want to manually upgrade the Enterprise Workloads agent. However, if you plan on completely uninstalling the agent and you still select no, you have to complete the uninstall.

Option to uninstall the agent using a script

If you plan to use a script to run the uninstall commands, you can export the following environment variable in your script to set the cleanup task as yes or no. When you use this environment variable, the script will run the uninstall command and will not interrupt the flow with a cleanup prompt that requires user input.

To set the cleanup task as yes.

export PHOENIX_PACKAGE_CLEANUP_FLAG=True

To set the cleanup task as no.

export PHOENIX_PACKAGE_CLEANUP_FLAG=False


📝 Note

Value of the environment variable is case-insensitive.


However, if your script runs in the background, you will not get a cleanup prompt. The uninstall commands run without cleaning up the configuration files. To ensure that cleanup happens, export the environment variable as true in the script.

Did this answer your question?