I have set up TFS 2015 with dedicated server to store the build agent. However, when I delete the build agent on TFS 2015 app server, it still show up on build server, in windows "Services"
Now the build server display error because the service exist but not running.
How can a build agent be removed from TFS 2015?
Go to the folder on the Build Server where you have unzipped your build agent.
Some of the commenters mentioned, that they didn't have to delete the settings file, so you can try to skip this step, perhaps it is not necessary anymore.
Open the commandline tool (cmd.exe) with admin rights!
Go to the folder as shown above in the screenshot.
Run the following command:
Result (console log):