Uninstall Filebeat on Ubuntu

Hi Team,

please how can i uninstall Filebeat from my Ubuntu Server?

Thank you for the reply

How did you install it? (DEB, RPM, Manually?)

Manually, $ sudo apt install filebeat

This should work to remove it then.

sudo apt list to get the name
sudo apt remove package_name to remove, replace package_name

Thank you. I have tried but i don't know if it worked because when i check with $ sudo systemctl status filebeat it's still active