Uninstall missing

I downloaded the alpha 12 tarball but there is no uninstall. I ran into some problems and want to uninstall libretime completely but there is no uninstall in the tarball. I want to uninstall libretime so i can reinstall a fresh and clean version.

The uninstall script was completely outdated and has been removed. Maintaining such script is not easy, we cannot handle every edge case, so we prefer documenting (no docs yet, I guess I just wrote it below) some commands and leave the responsibility to the user to know what should or should not be deleted.

We recommend using disposable machines for you installations, so you can trash your old system and install on a really fresh one.

If you do not have a way use disposable systems, you should be able to remove most of the files from the system using the following (USE AT YOUR OWN RISK):


sudo rm -Rf /etc/airtime

sudo rm -Rf /etc/libretime

sudo rm -Rf /var/log/airtime

sudo rm -Rf /var/log/libretime

sudo rm -Rf /var/lib/airtime

sudo rm -Rf /var/lib/libretime

sudo rm -Rf /usr/share/airtime

sudo rm -Rf /usr/share/libretime

sudo rm -f /etc/systemd/system/airtime*

sudo rm -f /etc/systemd/system/libretime*

sudo rm -f /etc/apache2/sites-{available,enabled}/airtime*

sudo rm -f /etc/apache2/sites-{available,enabled}/libretime*

sudo rm -f /etc/php/*/apache2/conf.d/airtime*

sudo rm -f /etc/php/*/apache2/conf.d/libretime*

sudo rm -f /etc/logrotate.d/airtime*

sudo rm -f /etc/logrotate.d/libretime*

sudo deluser celery

sudo pip3 uninstall \

libretime-analyzer \

libretime-api \

libretime-api-client \

libretime-playout \

libretime-shared \

libretime-celery

# Check if we forgot some old python packages.

# Remove packages that show up with this commands

sudo pip3 freeze | grep libretime

sudo pip3 freeze | grep airtime

# Delete the postgresql database and user

sudo -u postgres dropdb airtime

sudo -u postgres dropdb libretime

sudo -u postgres dropuser airtime

sudo -u postgres dropuser libretime

# Delete the rabbitmq vhost and user

sudo rabbitmqctl delete_vhost airtime

sudo rabbitmqctl delete_vhost libretime

sudo rabbitmqctl delete_user airtime

sudo rabbitmqctl delete_user libretime

# Delete the file storage (YOU MIGHT NOT WANT THAT)

# sudo rm -Rf /srv/airtime

# sudo rm -Rf /srv/libretime

EDIT: More details can be found on the new documentation page : Uninstall | LibreTime

1 Like

Thank you very much. I am actually thinking of installing Libretime on virtual machines. That would make it easier to start with a clean sheet.

Yes, for production servers we use headless cloud servers on Vultr or Digital Ocean. Spin up the os version required, snapshot it and then install the app, such as libretime. If you mess up your install, just roll back to snapshot…faster and cleaner than any uninstall script. We use KVM for local development environment.

I host my own servers. I had some serious problems with the local musicrights company since the hosting company i used had serverfarms in different countries. They wanted me to pay the royalties in each country since they couldn’t define where the actual server was from where the stream(s) originated.
Since then i do the hosting myself. I know it is somewhat more expensive to set everything up but in my case it has more advantages than disadvantages.