Skip to content

Uninstall Nebula Graph

This topic describes how to uninstall Nebula Graph.

Caution

Before re-installing Nebula Graph on a machine, follow this topic to completely uninstall the old Nebula Graph, in case the remaining data interferes with the new services.

Prerequisites

You have stopped the Nebula Graph services. For more information, see Manage Nebula Graph services.

Step 1: Delete data files of the Storage and Meta Services

If you have modified the data_path in the configuration files for the Meta Service and Storage Service, the directories where Nebula Graph stores data may not be in the installation path of Nebula Graph. Check the configuration files to confirm the data paths, and then manually delete the directories to clear all data.

For a Nebula Graph cluster, delete the data files of all Storage and Meta servers.

Caution

Make sure that you have backed up all important data.

  1. Find the data paths in the Storage Service disk settings and Meta Service storage settings. For example:

    ########## Disk ##########
    # Root data path. Split by comma. e.g. --data_path=/disk1/path1/,/disk2/path2/
    # One path per Rocksdb instance.
    --data_path=/nebula/data/storage
    
  2. Delete the directories found in step 1.

Step 2: Delete the installation directories

The default installation path is /usr/local/nebula. It can be modified while installing Nebula Graph. Delete all installation directories, including the cluster.id files in them.

Uninstall Nebula Graph deployed with source code

Find the installation path of Nebula Graph, and delete the directories.

Uninstall Nebula Graph deployed with RPM packages

  1. Run the following command to get the Nebula Graph version.

    $ rpm -qa | grep "nebula"
    

    The return message is as follows.

    nebula-graph-2.0.1-1.x86_64
    
  2. Run the following command to uninstall Nebula Graph.

    sudo rpm -e <nebula_version>
    

    For example:

    sudo rpm -e nebula-graph-2.0.1-1.x86_64
    
  3. Delete the installation directories.

Uninstall Nebula Graph deployed with DEB packages

  1. Run the following command to get the Nebula Graph version.

    $ dpkg -l | grep "nebula"
    

    The return message is as follows.

    ii  nebula-graph  2.0.1  amd64     Nebula Package built using CMake
    
  2. Run the following command to uninstall Nebula Graph.

    sudo dpkg -r <nebula_version>
    

    For example:

    sudo dpkg -r nebula-graph
    
  3. Delete the installation directories.

Uninstall Nebula Graph deployed with Docker Compose

  1. In the nebula-docker-compose directory, run the following command to stop the Nebula Graph services.

    docker-compose down -v
    
  2. Delete the nebula-docker-compose directory.


Last update: May 10, 2021
Back to top