How to Uninstall the Ansys License Manager (Windows and Linux)

This guide covers the step-by-step process for uninstalling the Ansys License Manager and deleting associated license files from your server. Procedures for both Windows and Linux operating systems are covered.

Removing the Ansys License Manager

Administrative rights are necessary for this procedure.
This guide assumes the use of the standard installation path for the Ansys License Manager.

 

                                         Windows Uninstallation Process

Execute these instructions on the license server machine using a command prompt with administrative privileges.

1. Halt the Ansys License Manager via the Ansys License Management Center.
2. Launch a command prompt as "Administrator" and execute the following commands:
   
   For Ansys License Manager version 2024 R1 and later:
   
   - Stop and remove the Ansys License Manager service:

     sc stop "ANSYS, Inc. License Manager CVD"
     sc delete "ANSYS, Inc. License Manager CVD"


   
   For earlier versions of the Ansys License Manager:
   
   - Stop and remove the service:

     sc stop "ANSYS, Inc. License Manager"
     sc delete "ANSYS, Inc. License Manager"

   - Terminate and remove the Ansys licensing Tomcat service:
  
     sc stop "ANSYSLicensingTomcat"
     sc delete "ANSYSLicensingTomcat"
   

3. Confirm that the services listed below are not active or present in Windows "Services". If they are, restart your computer and repeat the steps to ensure these services are fully removed.
   - ANSYS, Inc. License Manager
   - ANSYS Licensing Tomcat

4. Back up the license (.lic) files found in:
 
   "C:\Program Files\ANSYS Inc\Shared Files\Licensing\license_files"

5. Erase the "Licensing" folder, which removes the license files:
  
   rmdir /S "C:\Program Files\ANSYS Inc\Shared Files\Licensing"
  

6. Delete the Ansys License Manager entry from the Start menu:
   

rmdir /S "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\ANSYS Inc. License Manager"
  
7. If set, delete the ANSYSLIC_DIR and ANSYSLIC_SYSDIR environment variables.



                                                                    Linux Uninstallation Steps

Carry out these instructions on the license server machine, requiring root access for the default Ansys LM installation.

1. Terminate the Ansys License Manager using the Ansys License Management Center.
2. In Terminal, run the following:
   
   For Ansys license manager version 2024 R1 and newer:
   - Halt the Ansys license manager:
    
     sudo /ansys_inc/shared_files/licensing/stop_ansyslmd
    
   
   For stopping older Ansys license manager versions:
   - Use:
    
     sudo /ansys_inc/shared_files/licensing/stop_ansysli
    
   
   - End the Ansys Tomcat server process:
    
     sudo /ansys_inc/shared_files/licensing/stop_lmcenter
     ```

3. Backup then delete the licensing directory:
 
   sudo rm -R /ansys_inc/shared_files/licensing
  

4. For removing the Ansys License Manager from automatic startup, follow the instructions found in the Boot Time Startup Instructions using systemd*. To remove Tomcat from automatic startup, follow the steps in Removing Tomcat Automatic Startup Instructions*.

*Note: Accessing detailed Ansys Help requires an Ansys Customer Portal account

 

                                                                       Erasing License Files (.lic)

- To remove all license files (default installation path provided), use:


  Windows:

del "C:\Program Files\ANSYS Inc\Shared Files\licensing\license_files\*.lic"

Linux:
 
sudo rm /ansys_inc/shared_files/licensing/license_files/*.lic
 

Alternatively, individual ".lic" files may be deleted as needed based on their filenames.