Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I remove jenkins completely from linux

Tags:

linux

jenkins

I have deleted jenkins all directories from different folders. But still when I access URL it is showing me jenkins login.

I want to uninstall jenkins completely. Have tried many commands from internet but still jenkins is there on server.

I have only command line access via putty so I tries whatever is possible via command to remove jenkins.

like image 442
Helping Hands Avatar asked Jul 27 '16 05:07

Helping Hands


People also ask

How do I delete my Jenkins account?

If you go to the People view, you can click a user and then choose Delete in the left-hand menu (if you have Administer access). You could also delete the folder [jenkins-root]/Users/[username] and re-start Jenkins.

How do I delete an existing Jenkins service?

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) Simply delete the directory: C:\Program Files (x86)\Jenkins.


1 Answers

If your jenkins is running as service instead of process you should stop it first using

sudo service jenkins stop 

After stopping it you can follow the normal flow of removing it using commands respective to your linux flavour

For centos it will be

sudo yum remove jenkins 

For ubuntu it will

sudo apt-get remove --purge jenkins 

I hope this will solve your issue.

like image 89
mnpoonia Avatar answered Oct 05 '22 18:10

mnpoonia