Uninstall Trade
Remove Trade from your server completely: what to do first, which commands to run, and how to check it’s gone.
Before you uninstall
Uninstalling removes Trade from this server only. It doesn’t touch your positions or orders on exchanges. After you uninstall, this server sends nothing more to ZML.
Stop any running combo in Trade and close the positions you want closed. Positions and orders on exchanges don’t go away when you uninstall.
Delete the API keys Trade used on each exchange. For accounts connected with a wallet, revoke the authorization on that exchange.
Trade records and settings can’t be recovered after you uninstall. To keep them, package them first with step 2 of Move to a new server.
Uninstall
Log in to the server and run:
cd /opt/zml-trade
sudo docker compose down --volumes --rmi all
sudo docker images 'zml-trade-*' -q | xargs -r sudo docker rmi -f
cd /
sudo rm -rf /opt/zml-trade /var/log/zml-trade-install.logThese commands delete every combo, trade record, account setting and API key on this server. This can’t be undone.
Don’t use docker volume prune or docker system prune instead: they also delete data that belongs to other programs on the server.
Docker itself stays, since other programs may use it. If you no longer need it, remove it the way your system recommends.
Check that it’s gone
If neither command prints anything, Trade is gone:
sudo docker ps -a | grep zml-trade
sudo docker volume ls | grep zml-trade