⚠️ Warnings:
Installing places a /matrix/bin/remove-all script on the server.
You can run it to to have it uninstall things for you automatically (see below). Use with caution!
If you prefer to uninstall manually, run these commands (most are meant to be executed on the Matrix server itself):
ensure all Matrix services are stopped: ansible-playbook -i inventory/hosts setup.yml --tags=stop (if you can’t get Ansible working to run this command, you can run systemctl stop 'matrix*' manually on the server)
delete the Matrix-related systemd .service and .timer files (rm -f /etc/systemd/system/matrix*.{service,timer}) and reload systemd (systemctl daemon-reload)
delete some cached Docker images (docker system prune -a) or just delete them all (docker rmi $(docker images -aq))
delete the Docker networks: docker network rm matrix matrix-coturn (might have been deleted already if you ran the docker system prune command)
uninstall Docker itself, if necessary
delete the /matrix directory (rm -rf /matrix)