1

Topic: fully remove netdata

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,

I have iRedmail on Ubuntu Server 20.04 fresh install was in 2020, what is the best way to remove netdata?

Regards

Jack

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: fully remove netdata

Remove:

- /opt/netdata/
- /var/log/netdata/
- systemd service file

3

Re: fully remove netdata

ZhangHuangbin wrote:

Remove:

- /opt/netdata/
- /var/log/netdata/
- systemd service file

Hi,

Thanks for the reply but there is no systemd file? What about the Nginx server block in templates?

Thanks

Jack

4

Re: fully remove netdata

jackb wrote:

Thanks for the reply but there is no systemd file? What about the Nginx server block in templates?

You're right:

- /lib/systemd/system/netdata.service
- /etc/systemd/system/multi-user.*/netdata.service
- Remove netdata entry from files /etc/nginx/sites-enabled/*.conf.

5

Re: fully remove netdata

ZhangHuangbin wrote:
jackb wrote:

Thanks for the reply but there is no systemd file? What about the Nginx server block in templates?

You're right:

- /lib/systemd/system/netdata.service
- /etc/systemd/system/multi-user.*/netdata.service
- Remove netdata entry from files /etc/nginx/sites-enabled/*.conf.

Thank you, I will take a look at this over this weekend.

Regards

Jack

6

Re: fully remove netdata

ZhangHuangbin wrote:
jackb wrote:

Thanks for the reply but there is no systemd file? What about the Nginx server block in templates?

You're right:

- /lib/systemd/system/netdata.service
- /etc/systemd/system/multi-user.*/netdata.service
- Remove netdata entry from files /etc/nginx/sites-enabled/*.conf.

Just got round to removing Netdata. The cleanup went successful but Netdata is scattered all over the place in more than those places you mentioned.

systemctl stop netdata

/etc/systemd/system/multi-user.target.wants/netdata.service

rm -Rf /lib/systemd/system/system/netdata.service

rm -Rf /lib/systemd/system/netdata-updater.service

rm -Rf /lib/systemd/system/netdata-updater.timer

rm -Rf /etc/netdata

rm -Rf /opt/netdata

rm -Rf /var/log/netdata

userdel netdata

m -Rf /etc/nginx/templates/netdata.tmpl

rm -Rf /etc/nginx/templates/netdata-subdomain.tmpl

nano /etc/nginx/sites-enabled/00-default-ssl.conf

remove

include /etc/nginx/templates/netdata.tmpl;

rm -Rf /etc/nginx/netdata.users

systemctl daemon-reload

7

Re: fully remove netdata

Netdata comes with an uninstall script:

https://learn.netdata.cloud/docs/agent/ … /uninstall