Download PDFSubmit Feedback

  • Script Deployment
  • kwbase CLI Deployment
  • Docker Deployment

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

  1. Stop KWDB.

    systemctl stop kaiwudb
    
  2. Change to the kwdb_install directory.

  3. Execute the uninstallation command.

    ./deploy.sh uninstall 
    
  4. Confirm 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.

kwbase CLI Deployment

WARNING

Before proceeding, ensure all important data has been backed up. These operations will permanently delete all KWDB data and configurations.

  1. Stop KWDB.

  2. Remove custom certificate directory:

    sudo rm -rf <cert_path>
    
  3. Delete data directory:

    sudo rm -rf <data_path>
    
  4. 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.

  1. Stop the KWDB container:

    docker stop <kwdb-container>
    

    TIP

    Replace kwdb-container with the actual container name specified using the --name parameter during container creation.

  2. Remove the container:

    docker rm <kwdb-container>
    
  3. Delete the Docker image:

    # Retrieve the image name
    docker ps -a --filter name=kwdb-container --format "{{.Image}}"
    
    # Remove the image
    docker rmi ${image_name}
    
  4. Remove custom certificate directory:

    sudo rm -rf <cert_path>
    
  5. Delete data directory. Default data directory is /var/lib/kaiwudb.

    sudo rm -rf <data_path>