This page describes the procedures for completely uninstalling Fess.
Warning
Important Notes Before Uninstallation
Uninstalling will delete all data
If you have important data, be sure to create a backup first
For backup procedures, refer to Upgrade Procedure
Preparation Before Uninstallation
Create Backup
Back up the necessary data:
Configuration Data
Download it from “System” → “Backup” in the admin screen. This operation lets you export various settings (including crawl settings), search logs, and more all at once.
Customized Configuration Files
TAR.GZ/ZIP version:
RPM/DEB version:
Note
Most of Fess’s indexes and settings are stored in OpenSearch. To back up index data, use OpenSearch’s snapshot feature. For detailed procedures, refer to Upgrade Procedure.
Stop Services
Before uninstallation, stop all services.
TAR.GZ/ZIP version:
RPM/DEB version:
Docker version:
Uninstalling the TAR.GZ/ZIP Version
Step 1: Remove Fess
Delete the installation directory:
Step 2: Remove OpenSearch
Delete the OpenSearch installation directory:
Step 3: Delete the Data Directory (Optional)
Fess’s index data is stored in OpenSearch. By default it is stored inside the OpenSearch installation directory (such as opensearch-3.7.0/data), but if you have specified a different location with path.data, delete that directory as well:
Step 4: Delete the Log Directory (Optional)
Delete the log files:
Uninstalling the RPM Version
Step 1: Uninstall Fess
Uninstall the RPM package:
Note
When the Fess package is uninstalled, the package’s removal script automatically stops and disables the fess service and removes the fess user and group. The following steps are performed to confirm that these have been reliably removed, or to manually delete data and configuration files.
Step 2: Uninstall OpenSearch
Step 3: Confirm the Service Is Disabled
The service is usually disabled when the package is removed, but to confirm or disable it just in case, run the following.
For systemd:
For older SysV init (chkconfig) environments:
Step 4: Delete the Data Directory
Warning
Performing this operation completely deletes all index data.
The data directory is not removed when the package is uninstalled, so delete it manually:
Step 5: Delete the Configuration Files
Delete the configuration files and environment settings files:
Note
With RPM, configuration files in /etc/fess may remain with a name like .rpmsave. To delete them completely, remove them manually as shown above.
Step 6: Delete the Log Files
Step 7: Delete the Temporary Directory (Optional)
Step 8: Delete the User and Group (Optional)
The fess user and group are usually removed when the package is deleted. If they remain, or to remove the user and group for OpenSearch, run the following:
Uninstalling the DEB Version
Step 1: Uninstall Fess
Uninstall the DEB package:
To completely remove it including configuration files and environment settings files, use purge:
Note
With dpkg -r (remove), configuration files (conffiles) such as /etc/default/fess remain. Using dpkg -P (purge) also deletes these configuration files and the fess user and group.
Step 2: Uninstall OpenSearch
Or remove it including configuration files:
Step 3: Confirm the Service Is Disabled
The service is usually disabled when the package is removed. To confirm or disable it just in case, run the following:
Step 4: Delete the Data Directory
Warning
Performing this operation completely deletes all index data.
Step 5: Delete the Configuration Files (if dpkg -P was not used)
Step 6: Delete the Log Files
Step 7: Delete the User and Group (Optional)
If you did not use dpkg -P, the fess user and group remain. To remove them, run the following:
Uninstalling the Docker Version
Step 1: Remove Containers and Networks
Remove the containers and the network created by Docker Compose (search_net):
Step 2: Remove Volumes
Warning
Performing this operation completely deletes all data.
Fess’s data (such as indexes and dictionaries) is stored in OpenSearch volumes. First, check the list of volumes:
Remove the OpenSearch-related volumes:
Note
Volume names are prefixed with the Docker Compose project name (usually the name of the directory where the Compose files are located). Check the actual names with docker volume ls.
To remove the containers and volumes all at once, add the -v option to down:
Step 3: Remove Images (Optional)
To remove the Docker images and free up disk space:
Step 4: Remove Compose Files
Verifying the Uninstallation
Verify that all components have been removed.
Verify Processes
If nothing is displayed, the processes are stopped.
Verify Ports
Verify that the ports are not in use.
Verify Files
TAR.GZ/ZIP version:
RPM/DEB version:
Docker version:
Verify Packages
RPM version:
DEB version:
If nothing is displayed, the packages have been removed.
Partial Uninstallation
Remove Only Fess, Keeping OpenSearch
If OpenSearch is also used by other applications, you can remove only Fess.
Stop Fess
Remove the Fess package or directory
Remove the Fess data directory (such as
/var/lib/fess)Delete the Fess indexes created in OpenSearch (such as
fess.*and.fess_*)Do not remove OpenSearch
Remove Only OpenSearch, Keeping Fess
Warning
Removing OpenSearch will cause Fess to stop functioning. Change the configuration to connect to a different OpenSearch cluster.
Stop OpenSearch
Remove the OpenSearch package or directory
Remove the OpenSearch data directory (such as
/var/lib/opensearch)Update the Fess configuration to specify a different OpenSearch cluster
Troubleshooting
Cannot Remove the Package
Symptoms:
An error occurs with rpm -e or dpkg -r.
Solution:
Verify that the service is stopped:
Check dependencies:
Force removal (last resort):
Cannot Delete the Directory
Symptoms:
Cannot delete a directory with rm -rf.
Solution:
Check permissions:
Delete with sudo:
Verify that no process is using the files:
Preparing for Reinstallation
When reinstalling after uninstallation, verify the following:
All processes are stopped
All files and directories are deleted
Ports 8080 and 9200 are not in use
No previous configuration files remain
For reinstallation procedures, refer to Choosing an Installation Method.
Next Steps
Once uninstallation is complete:
To install a new version, refer to Choosing an Installation Method
To migrate data, refer to Upgrade Procedure
To consider an alternative search solution, refer to the official Fess website