In some isolated situations, you may need to forcibly undeploy a proxy that is partially deployed. Use the following command to ignore validations and undeploy:
curl -v -u $USERID:$PASSWORD -X POST "https://api.enterprise.apigee.com/v1/organizations/<org>/apis/<api>/revisions/<revisions_number>/deployments?action=undeploy&env=<env>&force=true"
Note, this can only be done via a Management API call, and not in the UI.
@Alex Toombs Thanks Alex, I added this to the doc here:
http://apigee.com/docs/management/apis/post/organi...
Stephen