On macOS:
-
Set the Daml Assistant to the version you want to keep. For example:
daml install 2.9.4 --install-assistant yes
-
Double-check:
> daml version --assistant yes SDK versions: 2.8.3 2.9.4 (daml assistant version) 2.10.0-snapshot.20241016.0 3.2.0-snapshot.20241009.0 (default SDK version for new projects)
-
Uninstall all but the Daml Assistant’s version:
daml version --assistant yes \ | grep -v 'daml assistant version' \ | sed -n -E 's|.*([0-9]+\.[0-9]+\.[0-9]+[^ ]*).*|\1|p' \ | xargs -I %v -- daml uninstall %v