Xray Uninstallation

Uninstall Xray by stopping all services and running uninstall.sh or Docker Compose cleanup.

Go to the directory where you extracted the installer and delete that directory.

  1. Stop Xray and all third party services associated with it.

  2. Navigate to the Application Installer directory (the location where the installation bundle was extracted to) cd jfrog-xray-<version>-deb/rpm.

  3. Run the uninstaller script. You must run as a root user.

    ./uninstall.sh
  4. Follow the series of prompt inputs provided by the script to complete the uninstall.

  5. Navigate to the Application Installer directory (the location where the installation bundle was extracted to) cd jfrog-xray-<version>-compose.

  6. Stop the Xray containers.

    docker-compose -p xray down
  7. Stop the PostgreSQL container.

    docker-compose -p xray-postgres down
  8. To remove Docker container traces, use the following commands.

    • For product containers.

      docker rm xray_router xray_server xray_indexer xray_analysis xray_persist xray_rabbitmq
    • For a PostgreSQL container (only if the container is internal).

      docker rm xray_postgres
📘

Note

The steps above will remove only the containers. You will also need to remove the Docker mount directory from the host machine [default ~/.jfrog/xray/var ] manually if needed. Make sure you do not remove <MOUNT_PATH>/xray/var/data/postgres if you need the third party data persisted.

  1. Stop Xray.

    systemctl stop xray.service
  2. Run the RPM uninstall. You must run as a root user.

    yum erase xray
📘

Note

The above steps remove only the application directory. Remove the data directory and application configurations [/var/opt/jfrog/xray] manually if required.

  1. Stop Xray.

    systemctl stop xray.service
  2. Run the Debian uninstall. You must run as a root user.

    apt purge xray
📘

Note

The above steps remove only the application directory. Remove the data directory and application configurations [/var/opt/jfrog/xray] manually if required.