All Products
Search
Document Center

:DeleteApplication

Last Updated:Dec 05, 2024

Deletes an application.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
sae:DeleteApplicationdelete
*All Resources
*
    none
none

Request syntax

DELETE /pop/v1/sam/app/deleteApplication HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
AppIdstringYes

The ID of the request.

017f39b8-dfa4-4e16-a84b-1dcee4b1****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The returned message.

  • If the request is successful, success is returned.
  • If an error occurred, the error code is returned.
91F93257-7A4A-4BD3-9A7E-2F6EAE6D****
Messagestring

The trace ID that is used to query details of the request.

success
TraceIdstring

The returned results.

0a98a02315955564772843261e****
Dataobject

The ID of the change order that is used to query the task execution status.

ChangeOrderIdstring

The error code that is returned if the request fails.

  • If the request is successful, this parameter is not returned.****
  • This parameter is returned only if the request failed.**** For more information about the values of this parameter, see the "Error codes" section of this topic.
01db03d3-3ee9-48b3-b3d0-dfce2d88****
ErrorCodestring

The HTTP status code. Valid values:

  • 2xx: The request is successful.
  • 3xx: A redirection message is returned.
  • 4xx: The request is invalid.
  • 5xx: A server error occurred.
Codestring

Indicates whether the application is deleted. Valid values:

  • true
  • false
200

Examples

Sample success responses

JSONformat

{
  "RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
  "Message": "success",
  "TraceId": "0a98a02315955564772843261e****",
  "Data": {
    "ChangeOrderId": "01db03d3-3ee9-48b3-b3d0-dfce2d88****"
  },
  "ErrorCode": "",
  "Code": "200",
  "Success": true
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidApplication.NotFoundThe current application does not exist.-
400InvalidParameter.NotEmptyYou must specify the parameter %s.-
400InvalidParameter.ObviouslyThe specified parameter is invalid {%s}.-
400InvalidParameter.WithMessageThe parameter is invalid {%s}: %s-
400Application.ChangerOrderRunningAn application change process is in progress. Please try again later.An application change process is in progress. Please try again later.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history