You can call this operation to delete an application from a Container Service for Kubernetes cluster.
Debugging
Request headers
This operation only uses common request headers. For more information, see the Common request parameters topic.
Request syntax
DELETE /pop/v5/k8s/acs/k8s_apps HTTPS|HTTP
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
AppId | String | Yes | dbac7e3c-****-49bc-b6de-ffc550018b45 |
The ID of the application that you want to delete. You can call the ListApplication operation to query the application ID. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | a5281053-08e4-47a5-b2ab-5c0323de7b5a |
The ID of the request. |
Code | Integer | 200 |
The returned code. |
Message | String | success |
The returned message. |
ChangeOrderId | String | 0a34531a-****-49dc-8e7f-0cbbbfa12cf0 |
The ID of the change process for this operation. If any instance where the application is deployed is running or any Server Load Balancer (SLB) instance is bound to the application, calling this operation generates a change process ID and deletes the application. You can call the GetChangeOrderInfo operation to query the progress of this operation. Based on the returned code, you can determine whether the deletion is successful. |
Examples
Sample requests
DELETE /pop/v5/k8s/acs/k8s_apps HTTP/1.1
Common request headers
{
"AppId": "dbac7e3c-****-49bc-b6de-ffc550018b45"
}
Sample success responses
JSON
format
{
"Message": "success",
"ChangeOrderId": "0a34531a-****-49dc-8e7f-0cbbbfa12cf0",
"Code": 200
}
XML
format
<Message>success</Message>
<ChangeOrderId>0a34531a-****-49dc-8e7f-0cbbbfa12cf0</ChangeOrderId>
<Code>200</Code>
Error codes
For a list of error codes, visit the API Error Center.