Skip to main content

Uninstalling Ant Media Server on Linux

This guide provides step-by-step instructions for uninstalling Ant Media Server from a Linux system. Follow the commands listed below to ensure the complete removal of the application.

Stop the Ant Media Server Service

Before uninstalling, stop the Ant Media Server service to ensure there are no running processes.

sudo service antmedia stop

Remove Ant Media Server Files

Delete the directory where Ant Media Server is installed. This removes all application files and data.

sudo rm -rf /usr/local/antmedia

Delete the Ant Media Server User

The specific user was created to run Ant Media Server, delete this user.

sudo userdel antmedia

Delete systemd file

sudo rm -rf /etc/systemd/system/antmedia.service
sudo systemctl daemon-reload