Deployment and Maintenance / Uninstallation
This article mainly describes how to uninstall DataFlux Func.
1. Preparation
Before uninstallation, use the Script Set export function to export relevant data.
2. Uninstallation Steps
You can uninstall by following the steps below.
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:
- Configuration files
- MySQL and 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 to allow the installation Script to obtain the previously installed directory during reinstallation or upgrade, 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, avoiding excessive disk space usage.
| Bash | |
|---|---|
1 | |
3. Notes
The above steps do not include uninstalling docker or cleaning up the DataFlux Func image. You can handle these yourself if needed.