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.

  1. Open a Windows PowerShell terminal as administrator. Navigate to the directory where the platform is installed and stop the platform.

    • PowerShell
    .\deployment_scripts\Stop-Platform.ps1
    
  2. Navigate to the root directory where the platform is installed and Switch to WSL.

    • PowerShell
    wsl
    
  3. Remove all existing images related to the platform.

    • WSL
    docker compose down --rmi all
    
  4. Remove all existing networks related to the platform.

    • WSL
    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.

  1. 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.

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

    • WSL
      docker volume rm $(docker volume ls -q)
      docker volume prune -a
    
  3. 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\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