FluxEdge
  • FluxEdge
    • ☀️Overview
    • 🏠Home
    • Projects
      • Overview
        • Machine Overview
        • Projects Overview
      • Deploy App
        • Quick Launch
        • Custom Deployment
        • Local Storage
      • Rent Machine
    • Rate and Review Machines
    • Account
      • Overview
        • Deposit Funds
      • Audit
        • Logs
        • Login
        • Machines
        • Projects
        • Balance
      • Contact Details
      • Settings
        • General Settings
        • Security Settings
          • How to Set Up an Anti-Phishing Code on FluxEdge
        • Notification Settings
    • ❓FAQs
      • Billing and Payments
      • Deployment and Management
      • Security
      • General Information
  • FluxCore
    • ☀️Overview
    • ☁️FluxCore Web
    • Installation
      • Windows Installation
        • Troubleshooting
          • WSLRun([wsl.exe -l]): exit status 0xffffffff
          • How to Download Logs
          • Efficient Steps to Safely Cleanse Your Windows System of FluxCore
      • Linux Headless Installation
      • Linux Installation
        • Troubleshooting
          • How to Uninstall Rancher on Linux via Command
          • How to Uninstall Rancher on Linux via UI
    • 🏠Home
    • 🖥️Machines
      • Discover Your Machine ID and Password
      • How to add Machines to your local FluxCore GUI
      • Connecting to Your Fluxcore Server from Another PC on Your Local Network Without Installation
      • Individual Machine
        • Overview
        • Benchmark
        • Hardware
    • ⛏️Mining
      • All about the “Mining Dashboard” Module
      • Overclocking (OC) Profiles
      • Auto-Switch
    • 🤖Services
      • Service Module Overview
      • PoUW OC Profiles
      • FAQs
    • Account
      • Overview
      • Audit
        • Logs
        • Login
        • Mining
        • Leases
        • Rewards Claimed
      • OC Profiles
        • Mining Profiles
        • PoUW Profiles
      • Modules
      • Contact Details
      • Settings
        • General Settings
        • Security Settings
          • How to Set Up an Anti-Phishing Code on FluxCore
        • Notification Settings
    • ✅FluxCore Supported NVIDIA Drivers
    • 💵Claiming Rewards
    • 💰Machine Pricing
    • ❓FAQs
      • Rewards Information
      • Provider Information
      • General Information
      • Security and Maintenance
  • Resources
    • Litepaper
    • FluxEdge Economics v1
    • Protocol Roadmap
    • Socials
      • Flux Linktree
      • Twitter
      • Discord
    • Support
Powered by GitBook
On this page
  1. FluxCore
  2. Installation
  3. Linux Installation
  4. Troubleshooting

How to Uninstall Rancher on Linux via Command

Follow these steps in the specified order to uninstall Rancher.

1. Pull the Uninstall Script

Run the following command to download and execute the uninstall script:

curl https://raw.githubusercontent.com/rancher/system-agent/main/system-agent-uninstall.sh | sudo sh

2. Uninstall Rancher

Run the following command to uninstall Rancher:

sudo rke2-uninstall.sh

3. Remove Files

Remove the specified directories and files with the following command:

sudo rm -rf /etc/ceph \
    /etc/cni \
    /etc/kubernetes \
    /etc/rancher \
    /opt/cni \
    /opt/rke \
    /run/secret/kubernetes.io \
    /run/calico \
    /run/flannel \
    /var/lib/calico \
    /var/lib/etcd \
    /var/lib/cni \
    /var/lib/kubelet \
    /var/lib/rancher \
    /var/log/containers \
    /var/log/kube-audit \
    /var/log/pods \
    /var/run/calico

Note that reciving the error :sudo: rke2-uninstall.sh: command not found is normal after running the command means your rancher is already uninstalled and you are free to rejoin the cluster.

This guide should help you properly uninstall Rancher from your Linux system.

PreviousTroubleshootingNextHow to Uninstall Rancher on Linux via UI

Last updated 8 months ago