1

Topic: How to fully remove netdata - iRedMail-1.7.2 on Ubuntu 24.04.2 LTS

Hi Team,

After a full clean install of iRedMail-1.7.2 on 24.04.2 LTS, I realised "netdata" is taking processing power and possibly disk space too later on.

I do not see much of a value with Netdata with iRedmail - I maybe wrong to say it but I want to remove netdata fully/completely.

What is recommended method to fully remove netdata with install from script "iRedMail.sh"?

I want to fully remove of all data, config files and any references in all other packages.

By Gooling I found 2 links.

1. https://github.com/netdata/netdata/issues/2938
2. https://community.netdata.cloud/t/unins … erver/3653

I also tried to check install type with this link https://learn.netdata.cloud/docs/netdat … nce/update but I got the below reply.

Command 'netdata' not found, but can be installed with:
apt install netdata-core

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

----

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

2

Re: How to fully remove netdata - iRedMail-1.7.2 on Ubuntu 24.04.2 LTS

Stop its service and remove its files:

systemctl stop --now netdata
rm -f /lib/systemd/system/netdata.service
rm -rf /opt/netdata/
rm -rf /var/log/netdata

3

Re: How to fully remove netdata - iRedMail-1.7.2 on Ubuntu 24.04.2 LTS

Thank you for the reply. I did cleaned them.

I also had to remove the below references and files related to netdata.
I believe we need to remove these to make it fully remove netdata.

rm /lib/systemd/system/netdata-updater.service
rm /lib/systemd/system/netdata-updater.timer
rm etc/logrotate.d/netdata
rm /etc/nginx/templates/netdata.tmpl
rm netdata-subdomain.tmpl
rm /lib/systemd/system-preset/50-netdata.preset

remove entried refering in these .conf files
sites-available/00-default-ssl.conf:    include /etc/nginx/templates/netdata.tmpl
sites-enabled/00-default-ss-before-allow-ip.conf:    include /etc/nginx/templates/netdata.tmpl
ZhangHuangbin wrote:

Stop its service and remove its files:

systemctl stop --now netdata
rm -f /lib/systemd/system/netdata.service
rm -rf /opt/netdata/
rm -rf /var/log/netdata

4

Re: How to fully remove netdata - iRedMail-1.7.2 on Ubuntu 24.04.2 LTS

Thanks for sharing. smile