Deployment and Maintenance / Uninstallation
This article 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 proceed with the uninstallation according to the following steps.
2.1 Stop DataFlux Func
Use docker stack to stop the running DataFlux Func.
| Bash | |
|---|---|
1 | |
2.2 Delete the Installation Directory
The installation directory contains the following content:
- Configuration files
- MySQL, Redis data volumes
- Files uploaded to DataFlux Func
- Docker stack configuration files
- Database backup files
- System logs
| Bash | |
|---|---|
1 | |
The default installation directory is /usr/local/dataflux-func
2.3 Delete the Installation Directory Record
The installation directory record is mainly used so that during reinstallation or upgrade, the installation script can obtain the previously installed directory, avoiding the need to use the --install-dir parameter every time.
| Bash | |
|---|---|
1 | |
If you need to automatically install to the same directory later, you can skip this step.
2.4 Delete the logrotate Configuration
The logrotate configuration is mainly used to automatically compress and rotate logs generated by DataFlux Func, preventing them from occupying too much disk space.
| Bash | |
|---|---|
1 | |
3. Notes
The above steps do not include the uninstallation of docker or the cleanup of DataFlux Func images. Please handle these separately if needed.