Via REST API

You can undeploy the API by using the command below.

curl -L -X POST 'https://api.am.wso2.com:9095/api/deployer/1.1.0/apis/undeploy?apiId=<API_ID>' \
--header 'Authorization: Bearer <Access Token From IdP>'

Once we invoke the above command, the API with the relevant API ID will be deleted and undeployed from the APK.