Windows – How to uninstall Jenkins on Windows

Jenkinswindows

A similar question was asked for Macs: How to uninstall Jenkins?

How do I do the same on Windows (specifically if I used the Jenkins Windows Installer to install Jenkins)?

My proposed uninstall plan is as follows, but I'm not sure if it is the correct way:

  1. Uninstall the Jenkins Windows Service by executing jenkins.exe uninstall from the command line (as suggested here: https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+as+a+Windows+service)
  2. Simply delete the directory: C:\Program Files (x86)\Jenkins

Best Answer

To uninstall jenkins and its slave services

1.Simply go to the directory where jenkins is installed.

2.Then open up a cmd in that directory. (cmd in administrator mode is preferable)

3.jenkins.exe uninstall (this name could be different in case of slave jenkins services like jenkins-slave.exe or something similar, the application is present in the folder)

For Jenkins as services do the same thing except go to its working directory.

In the end you can safely delete the directories.