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 Uninstall Firefox on Windows?
If you're considering changing your web browser or facing problems, you might be interested in learning how to remove Firefox from your Windows computer. This manual offers a detailed method for thoroughly getting rid of Firefox from your Windows system, including instructions for both standard unin
2 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 Set Java Path in Windows and Linux?
PATH is an environment variable that is used by Operating System to locate the exe files (.exe) or java binaries ( java or javac command). The path once it is set, cannot be overridden. The PATH variable prevents us from having to write out the entire path to a program on the Command Line Interface
4 min read
How to Install Git on Windows Command Line?
Git is an open-source and free, decentralized version control system designed to handle projects of all sizes with speed and efficiency. Basically, it is a software tracking application that is commonly used to monitor projects across several teams. The best way of downloading and installing Git on
3 min read
How to Install Rust on Windows and Linux Operating System?
Rust is a blazing fast and memory-efficient static compiled language with a rich type system and ownership model. It can be used to power performance-critical services while guaranteeing memory-safety and thread-safety, empowering developers to debug at compile-time. In addition to that Rust has gre
2 min read
How to Install Apache Maven on Windows, macOS, and Linux?
Apache Maven is a comprehensive build automation tool widely used for managing and building Java projects. It simplifies the process of managing project dependencies and building projects through a standardized approach. This article provides step-by-step instructions to install Apache Maven on Wind
4 min read
How to Use Linux Commands in Windows with Cygwin
Cygwin is a collection of tools that provide a Linux Operating System's terminal look, feel, and some of its basic functionality for users of Windows OS who want to have a go over the basic commands of Linux without worrying about installing a Linux OS. To use this tool, first of all, we need to dow
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