To uninstall Retain, use the following general procedure. Actual locations may vary according to your specific setup, storage location, and host operating system.
Shut Down Tomcat: “service retain-tomcat8 stop”
Shut Down Apache: “service apache2 stop”
(Optional) Remove the data storage files
Can be: /var/opt/beginfinite/retain. See the Retain Administration Guide section on storage to see where your data actually is placed.
Remove the program files
Can be: /opt/beginfinite/retain
Remove the RetainWorker.xml, RetainServer.xml, RetainRouter.xml, and RetainStatsServer.xml from Tomcat
Can be: /opt/beginfinite/retain/tomcat8/conf/Catalina/localhost
Remove the directories under tomcat/work (but NOT work itself)
“rm –r /var/cache/retain-tomcat8/work/*”
Remove references to Retain in httpd.conf
Can be: /etc/apache2/conf.d/retain-apache.conf
Remove tomcat service file: “rm /etc/init.d/retain-tomcat8”
If Apache and Tomcat were not removed, restart them both to verify that they load without problems.
Shut down Tomcat service
Remove Retain Tomcat 8 service
Open a terminal as admin and type: “sc delete tomcat8”
Remove the program files
Can be: C:\Program Files\Beginfinite\Retain
Remove the environment variables: RETAIN_CATALINA_HOME, RETAIN_HOME, RETAIN_JAVA_HOME, RETAIN_JAVA_VERSION, and RETAIN_JRE_HOME
(Optional) Remove the data storage files
Can be: C:\Retain
(Optional) Remove SQL Database, SQL Server, Apache or IIS