Skip to content

Instantly share code, notes, and snippets.

@houey
Created September 15, 2023 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save houey/5f9afef009670b1f188a8462604a6781 to your computer and use it in GitHub Desktop.
Save houey/5f9afef009670b1f188a8462604a6781 to your computer and use it in GitHub Desktop.
delete all aws api gateway apis
#usage deleteallapis.sh us-east-1
for api_id in $(aws apigatewayv2 get-apis --region $1 --query 'Items[*].ApiId' --output text); do aws apigatewayv2 delete-api --region $1 --api-id $api_id ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment