Skip to content

Deployment and Maintenance / Uninstallation

This Guide mainly introduces how to uninstall DataFlux Func.

1. Preparation

Before uninstalling, please use the Script Set export feature to export relevant data.

2. Uninstallation Steps

You can follow the steps below to uninstall

2.1 Stop DataFlux Func

Use docker stack to stop the running DataFlux Func

Bash
1
sudo docker stack rm dataflux-func

2.2 Delete Installation Directory

The installation directory contains the following:

  • Configuration files
  • MySQL, Redis data volumes
  • Files uploaded to DataFlux Func
  • Docker stack configuration files
  • Database backup files
  • System logs
Bash
1
sudo rm -rf {installation directory}

The default installation directory is /usr/local/dataflux-func

2.3 Delete Installation Directory Record

The installation directory record is mainly used during reinstallation or upgrade so that the installation script can obtain the previously installed directory, avoiding the need to use the --install-dir parameter each time

Bash
1
sudo rm -rf /etc/dataflux-func

If you need to automatically install to the same directory later, you can skip this step

2.4 Delete Logrotate Configuration

The logrotate configuration is mainly used to automatically compress and rotate logs generated by DataFlux Func to avoid taking up too much disk space.

Bash
1
sudo rm -rf /etc/logrotate.d/dataflux-func

3. Notes

The above steps do not include the uninstallation of docker or the cleanup of DataFlux Func images. If needed, you can handle them yourself.