Issue
I'm using MacOS and I've downloaded Jenkins using Terminal from here
I've tried following different approachs to uninstall it like this
But the problem I'm facing is that I didn't download the package and it's not located at /Application
I've tried brew uninstall jenkins-lts
and got the error: Error: No available formula or cask with the name "jenkins-lts".
Any other ways to uninstall Jenkins?
Solution
Just in case jenkins
was installed alongside jenkins-lts
, try:
• brew uninstall jenkins --force
Then try uninstalling by looking inside /Library
instead of /Application
:
• sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist\n/Library/Application \ Support/Jenkins/Uninstall.command
Remove ~/.jenkins
folder & restart your system!
Answered By - chornge