tag:help.appveyor.com,2012-11-13:/discussions/suggestions/6244-appveyor-rest-api-to-delete-buildAppVeyor: Discussion 2018-08-25T02:26:53Ztag:help.appveyor.com,2012-11-13:Comment/446841032018-02-08T03:44:38Z2018-02-08T03:44:38ZAppVeyor REST API to Delete build<div><p>It exists. <code>DELETE /api/builds/{buildId}</code>. <a href="https://github.com/appveyor/website/pull/418">Updating documentation now</a>.</p>
<p>You can use <a href="https://gist.github.com/IlyaFinkelshteyn/63684c78d14164cb501ff496dc68e43b">this sample</a> with different condition (say <code>commitId</code>) to find build you need. Then delete it with command like this: <code>Invoke-RestMethod -Uri "https://ci.appveyor.com/api/builds/$($result.buildId)" -Headers $headers -Method Delete</code></p></div>Ilya Finkelshteyn