AppVeyor REST API to Delete build

dwrobel's Avatar

dwrobel

07 Feb, 2018 07:01 PM

There is a REST API to Cancel a build (https://www.appveyor.com/docs/api/projects-builds/#cancel-build), but there seems to be no way to delete the build (either the canceled or finished one).

Can we please have a method to delete the build using REST API (maybe it's there but it's just not documented)? Can I make a GH issue, if this sounds reasonable?

  1. Support Staff 1 Posted by Ilya Finkelshte... on 08 Feb, 2018 03:44 AM

    Ilya Finkelshteyn's Avatar

    It exists. DELETE /api/builds/{buildId}. Updating documentation now.

    You can use this sample with different condition (say commitId) to find build you need. Then delete it with command like this: Invoke-RestMethod -Uri "https://ci.appveyor.com/api/builds/$($result.buildId)" -Headers $headers -Method Delete

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:26 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

21 Aug, 2019 11:06 PM
21 Aug, 2019 02:08 PM
21 Aug, 2019 01:37 PM
21 Aug, 2019 10:21 AM
21 Aug, 2019 09:10 AM

 

21 Aug, 2019 05:56 AM
21 Aug, 2019 03:08 AM
20 Aug, 2019 11:33 PM
20 Aug, 2019 08:07 PM
20 Aug, 2019 05:50 PM
20 Aug, 2019 12:35 PM