1
votes

With the switch of VSTS to Azure DevOps it seems the ability to delete an Agent from a pool from within the portal is gone. When a server hosting an agent needs to be rebuilt, we have always gone into the portal and deleted the server from the pool before rebuilding so that the server would seamlessly get added back to the pool. Otherwise, the installation fails saying that there is already a server with that name in the pool.

Does anyone know how to delete an existing agent from a pool in Azure DevOps, either manually or programmatically? Would love to be able to add a check for the name into the agent install script along with a delete if the name exists.

2

2 Answers

3
votes

This option not gone, just by default this is hidden and you should find out that. in the pool page in the first time you can't see the "delete" button, but if you press on the right line and dragging him to the right you will see the button.

enter image description here

0
votes

Had problems in the new UI as well... It's hidden under the 3 vertical dots that is only visible on hover:

Screenshot of delete menu option