Search code examples
tfsazure-devopsazure-devops-self-hosted-agentazure-devops-server-2019azure-devops-server

How to uninstall or remove configuration of a deployment pool or deployment agent


I am using Azure DevOps Server (TFS), and I register deployment pool agents in my test and production servers, now iIneed to uninstall or remove the configuration on my server and in my UI how can I do that there are a script to run or just delete the files or what could you please help me with that.


Solution

  • You need to do 2 things:

    1) Go to the agent folder (where he installed) and run config.cmd with the flag remove. if you are in the agent folder run this in the command line:

    ./config remove
    

    2) Go to the Deployment Group (in the UI) and click on the ... near the group and then Delete (to delete all the group, if you want only the agents so go inside and do the same thing there).