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

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

 

18 Aug, 2018 11:54 AM
18 Aug, 2018 12:13 AM
17 Aug, 2018 06:02 PM
17 Aug, 2018 04:26 PM
17 Aug, 2018 04:04 PM
17 Aug, 2018 06:31 AM