Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form
Home » Version Control System » How to unregister GitLab Runner in Windows
  • Azure Backup Copy 1
    How to Delete Backup Job in Recovery Services Vault AWS/Azure/OpenShift
  • redisf
    How to install Redis on Linux System Linux
  • screenshot 2020 05 03 at 18.30.44
    How to Activate Cisco ASA 5505 License Network | Monitoring
  • Featured image   change default mail app
    How to change Windows 11 and 10 default mail app to Outlook Windows
  • sandboxx
    Use Windows Sandbox as a security feature Virtualization
  • Mimikatz hacktool Trillix
    Windows Defender detects Endpoint Security HipHandlers.dll Security | Vulnerability Scans and Assessment
  • screenshot 2020 02 08 at 15.53.31
    Enable Automatic Logon via Windows Registry Windows
  • SQL Loves Linux 2 Twitter 002 640x358 1
    Install Microsoft SQL Server 2019 and MSSQL Command line tools on Ubuntu Linux Oracle/MSSQL/MySQL

How to unregister GitLab Runner in Windows

Posted on 25/04/202208/12/2023 Christian By Christian No Comments on How to unregister GitLab Runner in Windows
Unregistering GitLab Runner

GitLab Runner is an application that works with GitLab CI/CD to run jobs in a pipeline. When enabled, GitLab Runner uses a CI/CD job token to clone the submodules with the permissions of the user executing the job and does not require SSH credentials. This article discusses how to unregister GitLab Runner in Windows. Here is a guide on how to install, register and start GitLab Runner on Windows, and how to fix “Failed to remove network for build: Error during connect in the default daemon configuration on Windows, the Docker client must be run with elevated privileges“.

This operation cannot be undone. It updates the configuration file, so make sure to have a backup of config.toml before executing (un-registering) it.

Here are some related guides: How to install Git on macOS, How to uninstall Git on macOS, Practical Git use with markdown, how to clone a repository and install software from GitHub on Windows, and how to use AWS CodeCommit.

Unregister GitLab-runner

You can only add a single instance of GitLab runner to a system. This registered runner is added to the configuration file.

Discover the intriguing aspect of the ability to employ multiple configurations within a singular GitLab Runner installation. Executing gitlab-runner register adds a new configuration entry. It doesn’t remove the previous ones.

Method 1: By URL and token: To unregister a specific runner. First, get the runner’s details by executing the following command below.

gitlab-runner list

If you have access to the device which was used to register the GitLab runner, you can unregister the runner using the following command, where you replace the {TOKEN} with the token of your GitLab runner (e.g. 250cff67 in the example above)

gitlab-runner unregister --url https://gitlab.org/ --token {TOKEN}

Also, see Azure DevOps and GitHub integration for Docker and Kubernetes deployment, and how to build your first CI/CD Pipeline in Azure DevOps using ASP.Net Core Application.

Method 2: When multiple runners share a name. The removal process affects only the first runner.

gitlab-runner unregister --name test-runner

Method 3 – For All runners, you can also unregister all runners by using the command below.

gitlab-runner unregister --all-runners

Method 4: This is my recommended approach. Navigate to the GitLab-runner folder as shown below and stop the service.

Stop-GitLab-runner-service

Next, run the command to uninstall

.\gitlab-runner.exe uninstall

Finally, remove the directory with this command below

rmdir /s GitLab-Runner

More Commands Available

The following commands allow you to manage the runner as a system or user service. Use them to install, uninstall, start, and stop the runner service. Kindly refer to these related guides on how to uninstall GitLab from your Windows device. Also, see how to install, register and start GitLab Runner on Windows.

GitLab Runner removal

As shown in the image above. The image below shows how you can run these commands as you wish.

Capture2

If you’re looking for assistance, our guide on how to Unregister a GitLab Runner can be of great help. If you have any questions, please let me know in the comment session.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Version Control System Tags:GitLab, GitLab-Runner, Microsoft Windows, Windows 10, Windows 11, Windows Server 2016

Post navigation

Previous Post: How to hold comments for review on YouTube
Next Post: How to add languages to your Windows PC

Related Posts

  • Slide2
    How to Setup Jenkins Pipelines Environment for Docker Container Deployment Containers
  • ArchiveUnarchiveDelete134
    Manage a GitLab Project: How to archive or unarchive and delete GitLab projects Version Control System
  • Screenshot 2022 03 20 at 20.37.16
    Setup HTTPS users using Git credentials and Pushing Code to AWS CodeCommit AWS/Azure/OpenShift
  • Banner 1
    How to Deploy a React Application on Netlify Automation
  • bitbucketexportimport
    Import Repo to Bitbucket Cloud: Seamless Migration to GitLab Version Control System
  • Git not Recognized Image banner
    Fix Git is not recognised as an internal or external command Version Control System

More Related Articles

Slide2 How to Setup Jenkins Pipelines Environment for Docker Container Deployment Containers
ArchiveUnarchiveDelete134 Manage a GitLab Project: How to archive or unarchive and delete GitLab projects Version Control System
Screenshot 2022 03 20 at 20.37.16 Setup HTTPS users using Git credentials and Pushing Code to AWS CodeCommit AWS/Azure/OpenShift
Banner 1 How to Deploy a React Application on Netlify Automation
bitbucketexportimport Import Repo to Bitbucket Cloud: Seamless Migration to GitLab Version Control System
Git not Recognized Image banner Fix Git is not recognised as an internal or external command Version Control System

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • Azure Backup Copy 1
    How to Delete Backup Job in Recovery Services Vault AWS/Azure/OpenShift
  • redisf
    How to install Redis on Linux System Linux
  • screenshot 2020 05 03 at 18.30.44
    How to Activate Cisco ASA 5505 License Network | Monitoring
  • Featured image   change default mail app
    How to change Windows 11 and 10 default mail app to Outlook Windows
  • sandboxx
    Use Windows Sandbox as a security feature Virtualization
  • Mimikatz hacktool Trillix
    Windows Defender detects Endpoint Security HipHandlers.dll Security | Vulnerability Scans and Assessment
  • screenshot 2020 02 08 at 15.53.31
    Enable Automatic Logon via Windows Registry Windows
  • SQL Loves Linux 2 Twitter 002 640x358 1
    Install Microsoft SQL Server 2019 and MSSQL Command line tools on Ubuntu Linux Oracle/MSSQL/MySQL

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,825 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.