Uninstall 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.
Note- Ensure you have a backup if you want any data or config preserved, because this is destructive.
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
All set 🔧
You have successfully uninstalled Ant Media Server from your system. Your server is now clean and ready for a fresh start.