Deleting an API proxy

This page applies to Apigee and Apigee hybrid.

View Apigee Edge documentation.

When you delete an API proxy, Apigee removes that API proxy and undeploys it from the cluster.

Deleting an API proxy is similar to undeploying an API proxy, except that you can return to edit the revision that you undeploy. If you delete the API proxy, it is no longer available to edit.

Apigee UI

To delete an API proxy using the Apigee UI:

  1. In the Google Cloud console, go to the Apigee > Proxy development > API proxies page.

    Go to API proxies

  2. In the row for the proxy you want to delete, under Actions, click Delete.
  3. In the confirmation dialog, click Delete.

Apigee API

Delete an API proxy in your Apigee organization by issuing a DELETE request to the following resource:

https://apigee.googleapis.com/v1/organizations/$ORG/apis/$API

For example, to delete the helloworld API proxy:

curl "https://apigee.googleapis.com/v1/organizations/myorg/apis/helloworld" \
  -X DELETE \
  -H "Authorization: Bearer $TOKEN"

Where $TOKEN is set to your OAuth 2.0 access token, as described in Obtaining an OAuth 2.0 access token. For information about the curl options used in this example, see Using curl. For a description of environment variables you can use, see Setting environment variables for Apigee API requests.

The following provides an example of the response output:

{
  "metaData": {
    "createdAt": "1559145292799",
    "lastModifiedAt": "1559145292799",
    "subType": "Proxy"
  },
  "name": "helloworld",
  "revision": [
    "1"
  ]
}

For more information, see the API proxies API.