Have a question? Want to report an issue? Contact JFrog support

Skip to end of metadata
Go to start of metadata

Overview

This page describes how to uninstall Xray and remove all residual files from your system according to your installation type.

Data shared on PostgreSQL and MongoDB

The instructions on this page to uninstall Xray also remove the various databases it uses. If you are sharing the databases used by Xray with other applications, we recommend you do NOT follow these instructions as they will cause all the data in these databases to be removed.

Page Contents


Docker Installation

To uninstall an Xray Docker installation, follow the steps below: 

  1. Stop all runing Xray containers

    ./xray stop all

    or

    docker stop $(docker ps -a -q --filter="name=xray*")
  2. Remove all Xray containers

    docker ps -a
    docker rm -f <XRAY_*>

    or

    docker rm $(docker ps -a -q --filter="name=xray*")
  3. Remove old Xray images (optional)

    docker images -a | grep "xray" | awk '{print $3}' | xargs docker rmi -f
  4. Remove the $XRAY_HOME folder

    rm -rf ${XRAY_HOME}

RHEL or CentOS Installation

To uninstall an Xray RHEL or CentOS Linux installation, follow the steps below: 

  1. Remove Xray services 

    /opt/jfrog/xray/scripts/uninstallService.sh server
  2. Uninstall the Xray RPM packages

    rpm -e $(rpm -qa | grep xray)
    rpm -e $(rpm -qa | grep mongodb)
    rpm -e $(rpm -qa | grep rabbitmq)
    rpm -e  esl-erlang
  3. Uninstall PostgreSQL

    /opt/PostgreSQL/9.5/uninstall-postgresql
     
    # For init.d:
    
    rm /etc/init.d/postgresql-9.5.service
    
    # For systemd:
    
    rm /usr/lib/systemd/system/postgresql-9.5.service
    systemctl daemon-reload 
  4. Remove the data directories and system users (if they exist)

    userdel -rf postgres
    userdel -rf mongod
    userdel -rf rabbitmq
    rm -rf /var/opt/jfrog
    rm -rf /opt/jfrog/xray
    rm -rf /var/opt/jfrog/postgres
    rm -rf /home/xray
    rm -rf /var/log/rabbitmq
    rm -rf /var/lib/rabbit*
    rm -rf /var/lib/mongo*

Debian or Ubuntu Installation

To uninstall an Xray Debian or Ubuntu Linux installation, follow the steps below: 

  1. Remove Xray services

    /opt/jfrog/xray/scripts/uninstallService.sh server
  2. Uninstall the Xray RPM packages

    dpkg --purge $(dpkg-query -l | grep xray)
    dpkg --purge $(dpkg-query -l | grep mongodb)
    dpkg --purge rabbitmq-server esl-erlang
  3. Uninstall PostgreSQL

    /opt/PostgreSQL/9.5/uninstall-postgresql
     
    # For init.d:
     
    rm /etc/init.d/postgresql-9.5.service
    
    # For systemd:
    rm /usr/lib/systemd/system/postgresql-9.5.service
    systemctl daemon-reload 
  4. Remove the data directories and system users (if they exist)

    userdel -rf postgres
    userdel -rf mongod
    userdel -rf rabbitmq
    rm -rf /var/opt/jfrog
    rm -rf /opt/jfrog/xray
    rm -rf /var/opt/jfrog/postgres
    rm -rf /home/xray
    rm -rf /var/log/rabbitmq
    rm -rf /var/lib/rabbit*
    rm -rf /var/lib/mongo*

 

 

 

 

 

 

  • No labels