Undeploy API Proxy from Apigee X Environment of type "archive"

Does anyone have an idea how to undeploy an API proxy from an "archive" type Apigee environment? It seems like it can't be done from the Apigee UI, it throws an error: "This operation is not supported. The Environment DeploymentType is ARCHIVE. The required Environment DeploymentType is PROXY". The environment type can't be changed. The available CLI commands are "delete", "deploy", "describe", "list", "update" (no "undeploy" command found), "delete" doesn't work as it can't delete an active deployment. The final goal is to be able to delete the environment, which requires to delete/undeploy all API proxy's from it.

Solved Solved
0 2 361
1 ACCEPTED SOLUTION

Hi there, I believe the documentation you are looking for is here. In order to delete the environment, you must first redeploy the archive with no deployments defined. Once this is done you'll be free to delete the environment. Hopefully we'll get an "undeploy archive" feature soon as that seems like a more intuitive solution.

View solution in original post

2 REPLIES 2

Hi there, I believe the documentation you are looking for is here. In order to delete the environment, you must first redeploy the archive with no deployments defined. Once this is done you'll be free to delete the environment. Hopefully we'll get an "undeploy archive" feature soon as that seems like a more intuitive solution.

Thanks a lot, this worked!