capabilities.work

Tear Down an Environment

A 3-step recipe with Apigee. We can help you get access.

Recipe · 3 steps

Tear Down an Environment

with Apigee · Deployment Orchestration

Clear an environment of a deployed revision and delete it.

  1. List organization deployments to inspect what is currently running before tearing the environment down.
  2. Undeploy the proxy revision from the environment so the environment is free of deployments.
  3. Delete the now-empty environment, which returns a long-running operation while teardown completes.
What you'll need to have ready
  • organizationId: The Apigee organization owning the environment.
  • environmentId: The environment to tear down.
  • apiId: The proxy whose revision must be undeployed first.
  • revisionId: The deployed revision to undeploy.
For your developer

Arazzo workflow apigee:teardown-environment, 3 operations: listOrganizationDeployments → undeployApiProxyRevision → deleteEnvironment. Specs on APIs.io.