Skip to main content

Uninstall Netdata

⚠️ If you're having trouble updating Netdata, moving from one installation method to another, or generally having issues with your Netdata Agent installation, consider our reinstall Netdata doc instead of removing the Netdata Agent entirely.

Our self-contained uninstaller is able to remove Netdata installations created with shell installer. It doesn't need any other Netdata repository files to be run. All it needs is an .environment file, which is created during installation (with shell installer) and put in ${NETDATA_USER_CONFIG_DIR}/.environment (by default /etc/netdata/.environment). That file contains some parameters which are passed to our installer and which are needed during uninstallation process. Mainly two parameters are needed:


A workflow for uninstallation looks like this:

  1. Find your .environment file, which is usually /etc/netdata/.environment in a default installation.
  2. If you cannot find that file and would like to uninstall Netdata, then create a new file with the following content:
NETDATA_PREFIX="<installation prefix>"   # put what you used as a parameter to shell installed `--install` flag. Otherwise it should be empty
NETDATA_ADDED_TO_GROUPS="<additional groups>" # Additional groups for a user running the Netdata process
  1. Run as follows

    3.1 Interactive mode (Default)

    The default mode in the uninstaller script is interactive. This means that the script provides the user the option to reply with "yes" (y/Y) or "no" (n/N) to control the removal of each Netdata asset in the filesystem.

    ${NETDATA_PREFIX}/usr/libexec/netdata/ --yes --env <environment_file>

    3.2 Non-interactive mode

    If you are sure and you know what you are doing, you can speed up the removal of the Netdata assets from the filesystem without any questions by using the force option (-f/--force). This option will remove all the Netdata assets in a non-interactive mode.

    ${NETDATA_PREFIX}/usr/libexec/netdata/ --yes --force --env <environment_file>

Note: Existing installations may still need to download the file if it's not present. To execute uninstall in that case, run the following commands:

chmod +x ./
./ --yes --env <environment_file>

The default environment_file is /etc/netdata/.environment.

Note: This uninstallation method assumes previous installation with or the kickstart script. Currently using it when Netdata was installed by a package manager can work or cause unexpected results.

Was this page helpful?

Need further help?

Search for an answer in our community forum.