Uninstall KWDB
This section provides comprehensive uninstallation procedures for single-node KWDB. Choose the appropriate uninstallation approach based on your original deployment method.
Script Deployment
Stop KWDB.
systemctl stop kaiwudbChange to the
kwdb_installdirectory.Execute the uninstallation command.
./deploy.sh uninstallConfirm whether to delete the data directory.
When uninstalling KWDB, you can either delete or keep all user data. Please confirm your choice: Do you want to delete the data? (y/n):- Enter
y: Delete the data directory and unmount the loop device. - Enter
n: Keep the data directory for future use.
- Enter
kwbase CLI Deployment
WARNING
Before proceeding, ensure all important data has been backed up. These operations will permanently delete all KWDB data and configurations.
Stop KWDB.
Remove custom certificate directory:
sudo rm -rf <cert_path>Delete data directory:
sudo rm -rf <data_path>Delete the complied binary and library.
Docker Deployment
WARNING
Before proceeding, ensure all important data has been backed up. These operations will permanently delete all KWDB data and configurations.
Stop the KWDB container:
docker stop <kwdb-container>TIP
Replace
kwdb-containerwith the actual container name specified using the--nameparameter during container creation.Remove the container:
docker rm <kwdb-container>Delete the Docker image:
# Retrieve the image name docker ps -a --filter name=kwdb-container --format "{{.Image}}" # Remove the image docker rmi ${image_name}Remove custom certificate directory:
sudo rm -rf <cert_path>Delete data directory. Default data directory is
/var/lib/kaiwudb.sudo rm -rf <data_path>