You can call this operation to delete a deployment package version.

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/pkgVersion HTTP/1.1

Request parameters

Parameter Type Required? Example Description
PkgVersionId String Yes wp-5d1dfea63d7b4445ad6d****

The ID of the deployment package version 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 D8F166F0-632E-4DBA-96ED-EA520AE3****

The ID of the request.

Examples

Sample request


http://webplus.cn-hangzhou.aliyuncs.com/pop/v1/wam/pkgVersion?PkgVersionId=wp-5d244f33f314934e2ab1****&<Common request parameters>

Sample success response

XML format

<DeletePkgVersionResponse>
    <Message>success</Message>
    <RequestId>259AD58C-5B78-4D19-95EE-E30B57C7****</RequestId>
    <Code>OK</Code>
</DeletePkgVersionResponse>

JSON format

{
	"Message":"success",
	"RequestId":"424EB538-A880-48BA-9B50-F595557F****",
	"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.

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