You can call this operation to delete an application.

Note Before deleting an application, ensure that all deployment environments in the application have been terminated.

Debugging

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request headers

This operation uses common request headers, instead of special request headers. For more information, see the "Common request headers" section in "Common request and response headers."

Request syntax

DELETE /pop/v1/wam/application HTTP/1.1

Request parameters

Parameter Type Required? Example Description
AppId String Yes wa-5d1af9c802470221ab7*****

The ID of the application to be deleted.

Response parameters

Parameter Type Example Description
Code String OK

The response code. The value is OK if the request is successful.

Message String success

The response message. The value is success if the request is successful.

RequestId String ED18C0F9-D542-4EE0-A3EE-BD71A6A*****

The ID of the request.

Examples

Sample request


http://webplus.cn-hangzhou.aliyuncs.com/pop/v1/wam/application?ServiceCode=webx&Id=wa-5d243437f314934e2a*****&<Common request parameters>

Sample success response

XML format

<DeleteApplicationResponse>
      <Message>success</Message>
      <RequestId>ED18C0F9-D542-4EE0-A3EE-BD71A6A*****</RequestId>
      <Code>OK</Code>
</DeleteApplicationResponse>

JSON format

{
	"Message":"success",
	"RequestId":"ED18C0F9-D542-4EE0-A3EE-BD71A6A*****",
	"Code":"OK"
}

Error codes

HTTP status code Error code Error message Description
403 ResourceAuthFailed The specified resource does not exist or it does not belong to this Alibaba Cloud account. The error message returned because the specified resource does not exist or it does not belong to your Alibaba Cloud account.
403 AppDeleteNotAllowed You cannot delete this application. Make sure that all deployment environments in this application are terminated. The error message returned because you cannot delete the specified application. Before deleting the application, ensure that all deployment environments in the application have been terminated. Check the status of deployment environments and try again.
404 DeletingEnvNotExists Deleting environment failed. The specified environment does not exist. The error message returned because the deployment environment to be deleted does not exist.
400 EnvDeleteFailed An error occurred while deleting the application environment. This environment may have been deleted, or an error occurred while the server was deleting the environment configuration. The error message returned because an error occurred while deleting the specified deployment environment. The deployment environment may have been deleted, or an error may have occurred while deleting the deployment environment configuration from the server.

For more information about error codes, see API Error Center.