Instantly share code, notes, and snippets.

Embed
What would you like to do?
PowerShell sample:
$token = "" # token from https://ci.appveyor.com/api-token
$accountName = "" # account name from project IRL (after project/")
$projectSlug = "" # project slug from project IRL (after account)
$headers = @{
"Authorization" = "Bearer $token"
"Content-type" = "application/json"
}
Invoke-RestMethod -Uri "https://ci.appveyor.com/api/projects/$accountName/$projectSlug/buildcache" -Headers $headers -Method DELETE
Curl sample:
set token=""
set accountName=""
set projectSlug=""
curl -X "DELETE" "https://ci.appveyor.com/api/projects/%accountName%/%projectSlug%/buildcache" -H "Content-type: application/json" -H "Authorization: Bearer %token%" --insecure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment