How To Uninstall Jenkins On Windows And Linux ?
Last Updated :
29 Apr, 2024
Jenkins is a popular open-source server automation that is used for continuous integration and continuous delivery (CI/CD) for building, deploying, and automating projects. Jenkins is one of the most popular tools used by DevOps to facilitate server automation tasks. Jenkins is highly extensible and supports a variety of popular plugins, making it a popular choice for automation tasks and software development. In this article, we are going to learn how we can uninstall Jenkins from Windows and Linux. So, let's get started.
Steps To Uninstall Jenkins
One may have several reasons to remove Jenkins from the system. If someone wants to upgrade or downgrade Jenkins, it is advised to remove the existing version of Jenkins. Then, the user can install the latest version of Jenkins without any issues. Many individuals want to uninstall Jenkins to free some memory in the system, or for troubleshooting purposes. It is important to keep in mind that whatever the purpose of uninstalling Jenkins make sure to backup important data or configurations from Jenkins.
We are going to see how we can uninstall Jenkins on:
Steps To Uninstall Jenkins On Windows
Let's start the process of uninstalling Jenkins from Windows completely and with ease. To Uninstall Jenkins follow the below step:
Step 1. Click on the Start Menu
Click on Start Menu and Search 'add or remove program'. Then after typing this hit enter, After doing this operation 'apps and features' will open. Do the same process as shown below in the Image.
Start MenuStep 2: Search Jenkins
Apps & Features screen will open up to you, now search 'Jenkins' in the search box. After typing, Jenkins software will appear on the screen, just click on the uninstall option and wait till it gets uninstalled. Do the same process as directed in the below image.

Wait till It gets uninstalled from the system. Provide the administration rights and it will get uninstalled as shown in the below image.

Step 3: Delete the Jenkins folder
Go to C: -> Program Files.When your present working directory is "program files" locate the 'Jenkins' folder, and delete the whole folder. Look at the below image and follow the steps to uninstall the Jenkins folder.Look at the below image:
.png)
you successfully uninstall Jenkins from your system. Now let's go ahead and uninstall it from the Linux too.
Steps To Uninstall Jenkins On Linux
Let's start the process of removing Jenkins from Linux using the command line and for that be prepared with your terminal!
Step 1: Open Terminal and stop Jenkins services
Before uninstalling Jenkins we have to stop the Jenkins service using the terminal and command so that we can remove Jenkins easily.
To stop the Jenkins service enter the following command:
Command:
sudo systemctl stop jenkins.service
Look at the image and follow the steps to stop the service.

Step 2: Remove Jenkins File
Removing Jenkins files before uninstalling Jenkins is crucial because sometimes we might face errors as the system won't be able to uninstall Jenkins. Therefore, we have to initially remove the Jenkins files.
Enter the following command which will remove the Jenkins files from the system:
Command:
sudo rm -rf /var/lib/jenkins
Where,
rm is used to remove or delete a file or folder
-rf is for recursive force, that forces to delete files in a folder recursively.

we have successfully removed the Jenkins files. Give the root permission to delete files.
Step 3: Uninstalling Jenkins
Now we have taken the necessary measures, it's about time to uninstall Jenkins from the Linux system and free up some space. Enter the following command and it will remove the Jenkins from your Linux system.
Command:
sudo apt-get remove --purge jenkins
This command will remove all the things that are related to Jenkins and free up your storage.

If asked, type 'y' or simply press 'Enter' it will remove the Jenkins, this will be asked for the confirmation to delete Jenkins. After this operation, Jenkins will be removed completely.To check whether Jenkins has been removed or not run the same command again.
Command:
sudo apt-get remove --purge jenkins
It will display the error message while saying, it has not been installed in the system. Look at the image

You have successfully removed Jenkins from your Linux system.
Similar Reads
How to uninstall OpenCV in Windows? OpenCV (Open Source Computer Vision Library) is a powerful open-source computer vision and machine learning software library. While it provides incredible functionality for image processing and analysis, there may come a time when you need to uninstall it from your Windows system. This article will
1 min read
How to Completely Uninstall Android Studio on Windows? Android Studio is the official IDE (Integrated Development Environment) for Android app development and it is based on JetBrainsâ IntelliJ IDEA software. Android Studio provides many excellent features that enhance productivity when building Android apps. Maybe you are facing some problems or bugs w
2 min read
Uninstall Node.JS Using Linux Command Line To uninstall Node.js from your Linux system, you can use the command line, and the process will vary depending on how you originally installed it. Whether you used a package manager like apt, installed Node.js using nvm (Node Version Manager), or manually installed it from a binary file, you can eas
3 min read
How to Uninstall Kernel from Linux (Remove Old Kernel Versions) The process uninstalling or removing a kernel involves the deletion of a specific kernel version from your Linux System which is aimed at optimizing the performance of the system. Depending on the Linux distribution that one chooses to work with, this process can be executed using various package ma
11 min read
How to Uninstall and Update Brew in macOS? If you are a Mac user, then it is quite obvious that you know about Homebrew, a useful tool. Individuals install Mac Brew to make Mac Terminal more interactive. Occasionally, there is a need to update Brew Mac to get the latest upgrade. However, if you are tired of the Mac Homebrew Package and want
3 min read