I'm creating an intergration between Testrail and Teamcity. Our QA team will be able to trigger executions of Teamcity builds via the Testrail interface and then the results are reported back to Testrail and subsequently removed from Teamcity.
When they trigger the builds, a "base" Teamcity build configuration is duplicated and dynamic build specific settings provided from Testrail are added to the new, duplicated, build configuration (like build steps, etc.).
These duplicates are supposed to be just temporary build configurations that will most often only be executed once and then should be deleted (after successful reporting to Testrail).
I can't seem to find a way to delete build configurations automatically after they have been executed, not in the API docs, API responses (when fetching a build configuration) or in the web interface.
This is perhaps not the way Teamcity should be used, so I might have to implement this myself?
All help is greatly appreciated.