Exercise 2: Delete a published API
In this exercise, delete an existing API.
Requirements
API is enabled and published.
API gateway is selected and enabled.
Solution
To delete a published API, proceed as follows. Step 1: Delete the API gateway(s) using the API. Step 2: Delete the API.
Step 1: Delete the API gateway(s) that is using the API
The API gateway using the API must be deleted first.
Note: When an API is set with more than one API gateway, all API gateways must be disabled first, and then the API is deleted.
To go to the API gateway, follow any of the options:
Select “API gateway” under “APIs and integration” on the left side panel and open the required API.
OR Open the API gateway by clicking the [Go to API gateway] button in the API under the Details tab. It displays the API gateway.
3. OR go to the Usage tab on the API page and click on the API gateway. It displays the API gateway in Used by.
To begin deleting the API gateway, click the Delete API gateway icon on the API gateway page.
To confirm the deletion for the API gateway, a dialog box will pop up asking for confirmation by entering the API gateway name. Enter the name of the API gateway. The [Delete] button gets activated.
To delete the API gateway, click the [Delete] button. The message for successful deletion displays.
Step 2: Delete the API
When the API gateway using the API is deleted, delete the API as follows.
Disable the API. An enabled API cannot be deleted.
Click the Delete API icon to delete the API.
To confirm the deletion for the API, a dialog box will pop up asking for confirmation. Enter the name of the API. The [Delete] button gets activated.
To delete the API, click the [Delete] button. The message for successful deletion displays.
Last updated