capabilities.work

Decommission an HTTP API

A 3-step recipe with Amazon API Gateway. We can help you get access.

Recipe · 3 steps

Decommission an HTTP API

Delete an API only when it has no published stages.

  1. Confirm the API exists before attempting teardown.
  2. List stages to decide whether the API is safe to delete.
  3. Delete the API now that no stages remain.
What you'll need to have ready
  • apiId: Identifier of the API to decommission.
For your developer

Arazzo workflow aws-api-gateway:decommission-http-api, 3 operations: GetApi → $sourceDescriptions.stagesApi.getStages → DeleteApi. Specs on APIs.io.