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.

  1. Open a Windows PowerShell terminal as administrator and stop the platform.

    • PowerShell
    .\Stop-Platform.ps1
    
  2. 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).

    • PowerShell
    Remove-Item -Path "C:\Path\To\Directory" -Recurse -Force
    
  3. Switch to WSL.

    • PowerShell
    wsl
    
  4. Remove all existing containers.

    • WSL
    docker rm -f $(docker ps -a -q)
    
  5. Remove all existing images.

    • WSL
    docker rmi -f $(docker images -q)
    
  6. Remove all existing networks.

    • WSL
    docker network rm $(docker network ls -q | grep -vE '^(bridge|host|none)$')
    
  7. Remove all cache files.

    • WSL
    docker system prune -a
    
  8. [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.

    • WSL
    docker volume rm $(docker volume ls -q)
    docker volume prune -a