How to clean uninstall from Windows 10?
-
I'm trying to follow this guide here:
https://fusionauth.io/docs/v1/tech/installation-guide/upgrade
At the
Shutdown and Uninstall FusionAuth
section for Windows.I ran the code and I'm getting the errors below. But this guide seem to be for upgrading. How do I uninstall fusionauth and clean all of its related files from the Windows environment? AppData, Temp, database tables, etc. Thanks in advance!
Directory: C:\Users\me\projects\fusionauth\fusionauth\fusionauth-app\apache-tomcat\bin Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 4/10/2020 3:04 PM 35183 bootstrap.jar -a---- 4/10/2020 3:04 PM 15900 catalina.bat -a---- 4/10/2020 3:04 PM 23447 catalina.sh -a---- 4/10/2020 3:04 PM 2123 ciphers.bat -a---- 4/10/2020 3:04 PM 1997 ciphers.sh -a---- 4/10/2020 3:04 PM 207125 commons-daemon-native.tar.gz -a---- 4/10/2020 3:04 PM 25145 commons-daemon.jar -a---- 4/10/2020 3:04 PM 2040 configtest.bat -a---- 4/10/2020 3:04 PM 1922 configtest.sh -a---- 4/10/2020 3:04 PM 8513 daemon.sh -a---- 4/10/2020 3:04 PM 2091 digest.bat -a---- 4/10/2020 3:04 PM 1965 digest.sh -a---- 4/10/2020 1:24 PM 11447 FusionAuthApp.ps1 -a---- 8/28/2018 3:46 PM 945 install_java.ps1 -a---- 4/10/2020 3:04 PM 3460 setclasspath.bat -a---- 4/10/2020 3:04 PM 3708 setclasspath.sh -a---- 8/28/2018 3:46 PM 2752 setenv.bat -a---- 4/28/2019 6:48 PM 5156 setenv.sh -a---- 4/10/2020 3:04 PM 2020 shutdown.bat -a---- 4/10/2020 3:04 PM 1902 shutdown.sh -a---- 4/10/2020 3:04 PM 2022 startup.bat -a---- 4/10/2020 3:04 PM 1904 startup.sh -a---- 4/10/2020 3:04 PM 49935 tomcat-juli.jar -a---- 4/10/2020 3:04 PM 4574 tool-wrapper.bat -a---- 4/10/2020 3:04 PM 5515 tool-wrapper.sh -a---- 4/10/2020 3:04 PM 2026 version.bat -a---- 4/10/2020 3:04 PM 1908 version.sh PS C:\Users\me\projects\fusionauth\fusionauth\fusionauth-app\apache-tomcat\bin> FusionAuthApp.exe /uninstall FusionAuthApp.exe : The term 'FusionAuthApp.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + FusionAuthApp.exe /uninstall + ~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (FusionAuthApp.exe:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
-
The Windows install is just a zip package. So deleting is mostly just deleting the directory.
Un-install the service
If you installed a Windows service after unzipping the bundle during the installation, you should un-install that first. If you only used the
startup.bat
script you can skip this step.cd C:\Users\me\projects\fusionauth\fusionauth-app\apache-tomcat\bin FusionAuthApp.exe /uninstall
https://fusionauth.io/docs/v1/tech/installation-guide/upgrade
Note:
Note, I see at the bottom of your code example that binary is not present in the directory. I'll have to look into why that is not present. In any case, if it is not present, that also means you have not installed the service, so you can skip this step.Delete the directory
To complete the un-install, simply delete the directory once you have stopped the processes.
rmdir C:\Users\me\projects\fusionauth /s
If you have a database running locally, you will need to delete that separately. To do that you can open a SQL shell and run:
drop database fusionauth;
Hope that helps! Perhaps we need to add an un-install section to the documentation.
-
Thank you for the quick reply! I have successfully uninstalled it.
In addition to your instructions. I followed the same logic and removed the AppData as well.
rmdir C:\Users\me\AppData\Local\Temp\fusionauth /s
Thanks for your help!