Uninstall the platform#
Uninstall a deployment of the Ansys App Portal and Light Deployment Templates™ platform.
Note
The first steps are performed in PowerShell and the rest are performed in WSL.
Open a Windows PowerShell terminal as administrator and stop the platform.
.\Stop-Platform.ps1
Remove the deployed applications.
Replace
C:\Path\To\Directory
with the path to the directory where the applications are stored (by default,C:\Users\<user_name>\AppData\Roaming\Ansys\solutions
).Remove-Item -Path "C:\Path\To\Directory" -Recurse -Force
Switch to WSL.
wsl
Remove all existing containers.
docker rm -f $(docker ps -a -q)
Remove all existing images.
docker rmi -f $(docker images -q)
Remove all existing networks.
docker network rm $(docker network ls -q | grep -vE '^(bridge|host|none)$')
Remove all cache files.
docker system prune -a
[Optional] Remove all existing volumes.
Warning
This removes the data generated by the platform and the applications. If you have any doubt about this step, do not do it.
docker volume rm $(docker volume ls -q) docker volume prune -a