Uninstalling OKA

To uninstall OKA:

  • Stop and disable and then remove OKA services:

    sudo systemctl stop oka.service
    sudo systemctl disable oka.service
    sudo systemctl disable okaserver.service
    sudo systemctl disable okacelerybeat.service
    sudo systemctl disable okacelery_default_queue.service
    sudo systemctl disable okacelery_monitoring_queue.service
    sudo systemctl disable okacelery_training_queue.service
    sudo rm /etc/systemd/system/oka*.service
    
  • Delete the OKA directory:

    sudo rm -rf ${OKA_INSTALL_DIR}
    
  • Delete the oka_db PostgreSQL database:

    sudo -i -u postgres
        psql
            DROP DATABASE oka_db;
            ctrl+d
        ctrl+d
    
  • Delete each index generated by OKA in the Elasticsearch database:

    curl -XDELETE host:port/INDEX_ID
    
  • If your Elasticsearch db is dedicated to OKA then delete all at once:

    curl -XDELETE host:port/_all