Via CRs
To undeploy an API, you can use the following steps.
Step 1. Get the API CR Name¶
Execute the following command to list APIs deployed in your dataplane.
Step 2. Delete the API CR¶
Copy the API CR name that you want to undeploy and execute the following command.
kubectl delete api <api-name> -n <namespace>
After deleting the API CR, the API will be undeployed from the dataplane.