How to remove all favorite builds?

With wrong configuration, it ends up with thousands of "favorite builds" under my account. So is there any easy way to remove all of them? 

0
1 comment

Hi Enze,

Do you want to delete the builds or untag them as favorites?

For both options, you could create a script that retrieves all the favorite builds via the REST API, and then iterate through them performing the desired task. Retrieving the favorites can be done via the following url: <server_address>/app/rest/builds?locator=tag:(name:.teamcity.star,private:true)
For more options of the REST API, please check the docs here: https://confluence.jetbrains.com/display/TCD10/REST+API

0

Please sign in to leave a comment.