I find Netdata is taking up quite a bit of RAM, and as I never use it, I'd like to remove it.
I saw here an instruction on how to properly remove it.
I used this command: wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --uninstall
But using that command failed for me. I tried it without, and then with sudo
in case that was the cause of the issue.
Here's the output:
inspiredearth@whc4:/tmp$ sudo wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --uninstall
--2023-01-14 08:18:27-- https://my-netdata.io/kickstart.sh
Resolving my-netdata.io (my-netdata.io)... 104.21.13.159, 172.67.156.192, 2606:4700:3031::6815:d9f, ...
Connecting to my-netdata.io (my-netdata.io)|104.21.13.159|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/octet-stream]
Saving to: ‘/tmp/netdata-kickstart.sh’
/tmp/netdata-kickstart.sh [ <=> ] 79.14K --.-KB/s in 0.009s
2023-01-14 08:18:27 (8.38 MB/s) - ‘/tmp/netdata-kickstart.sh’ saved [81037]
--- Using /tmp/netdata-kickstart-p4ykn4G9Iq as a temporary directory. ---
--- Checking for existing installations of Netdata... ---
--- Downloading netdata-uninstaller ... ---
[/tmp/netdata-kickstart-p4ykn4G9Iq]$ curl --fail -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-kickstart-p4ykn4G9Iq/netdata-uninstaller.sh https://raw.githubusercontent.com/netdata/netdata/master/packaging/installer/netdata-uninstaller.sh
OK
[/tmp/netdata-kickstart-p4ykn4G9Iq]$ sudo /tmp/netdata-kickstart-p4ykn4G9Iq/netdata-uninstaller.sh --yes
/tmp/netdata-kickstart-p4ykn4G9Iq/netdata-uninstaller.sh: 699: .: Can't open /etc/netdata/.environment
Sat Jan 14 08:18:27 UTC 2023 : FATAL: netdata-uninstaller.sh: FAILED TO UNINSTALL NETDATA: Failed to completely remove Netdata from this system.
FAILED
Finished uninstalling the Netdata Agent.The following non-fatal warnings or errors were encountered:
- Command "sudo /tmp/netdata-kickstart-p4ykn4G9Iq/netdata-uninstaller.sh --yes" failed with exit code 1.