Skip to content

Instantly share code, notes, and snippets.

@nieldw
Last active January 3, 2019 17:44
Show Gist options
  • Save nieldw/d67dff55229584f00a7587e464eb029b to your computer and use it in GitHub Desktop.
Save nieldw/d67dff55229584f00a7587e464eb029b to your computer and use it in GitHub Desktop.
Delete Google Cloud Build trigger
#!/usr/bin/env bash
PROJECT_ID=$(gcloud config get-value core/project --quiet)
TRIGGER_ID=$1
curl -s -XDELETE -H"Authorization: Bearer $(gcloud config config-helper --format='value(credential.access_token)')" https://cloudbuild.googleapis.com/v1/projects/${PROJECT_ID}/triggers/${TRIGGER_ID} | jq '.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment