Uninstall the platform#
Uninstall a deployment of the Ansys App Portal and One Node 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. Navigate to the directory where the platform is installed and stop the platform.
.\deployment_scripts\Stop-Platform.ps1
Navigate to the root directory where the platform is installed and Switch to WSL.
wsl
Remove all existing images related to the platform.
docker compose down --rmi all
Remove all existing networks related to the platform.
docker network rm $(docker network ls -q --filter name=platform_)
Full cleanup (Optional)#
If you want to perform a full cleanup of the platform, including all Docker images, containers, networks, volumes, and cache files, follow these additional steps.
Remove all cache files.
Warning
This process will remove all cache files. This may impact other Docker containers and applications running on your system. Proceed with caution.
docker system prune -a
Remove all existing volumes.
Warning
This will permanently delete all persistent data generated by the platform and applications. Proceed only if you are sure this data is no longer needed.
docker volume rm $(docker volume ls -q) docker volume prune -a
Remove the solutions directory.
Warning
This will permanently delete the applications directory and all its contents. Proceed only if you are sure this data is no longer needed.
Replace
C:\Path\To\Directorywith 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