All Products
Search
Document Center

Cloud Control API:DeleteResource

Last Updated:Dec 11, 2025

This operation deletes a resource.

Operation description

You can go to API Explorer to view resource documentation and test the Cloud Control API.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

DELETE /api/v1/providers/{provider}/products/{product}/resources/* HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

requestPath

string

No

The URI of the request. The format is: /api/v1/providers/{provider}/products/{product}/resources/{resourceType}/{resourceId}

The variables in the request URI are described as follows:

provider: The cloud provider. Currently, only Aliyun is supported.

product: The product code.

resourceType: The resource type. If a parent resource exists, the format is `{parent resource type code}/{parent resource ID}/{resource type code}`.

resourceId: The resource ID.

无父资源: /api/v1/providers/Aliyun/products/Redis/resources/DBInstance/r-2ze8v41uei31lo**** 有父资源: /api/v1/providers/Aliyun/products/Redis/resources/DBInstance/r-2ze8v41uei31lo****/Account/user****

Request parameters

Parameter

Type

Required

Description

Example

regionId

string

No

The region ID. This parameter is required if the cloud product is region-specific.

cn-beijing

clientToken

string

No

A client token to ensure idempotence. This parameter works only if the cloud product supports idempotence.

1e810dfe1468721d0664a49b9d9f74f4

Response elements

Element

Type

Description

Example

object

The response body.

requestId

string

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3****

taskId

string

The ID of the asynchronous task. The system returns this parameter for asynchronous operations. For these operations, the HTTP status code is 202.

task-433aead756057fff8189a7ce5****

Examples

Success response

JSON format

{
  "requestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
  "taskId": "task-433aead756057fff8189a7ce5****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.