Delete Logical Asset


Delete a specified logical asset.

Operation Permissions

Required Service

Required Action Permission

Asset Tree

Full Access

Request Format

POST https://{apigw-address}/asset-service/v2.1/logical-assets?action=delete

Request Parameters (URI)

Name

Location (Path/Query)

Mandatory/Optional

Data Type

Description

orgId

Query

Mandatory

String

The organization ID which the asset belongs to. How to get orgId>>

assetId

Query

Mandatory

String

The asset ID. How to get assetId>>

Error Codes

Code

Message

Description

17404

Logical asset does not exist

The assetId cannot be found or does not exist.

Samples

Request Sample

url: https://{apigw-address}/asset-service/v2.1/logical-assets?action=delete&orgId=yourOrgId&assetId=yourAssetId
method: POST

Return Sample

{
  "code": 0,
  "msg": "OK",
  "requestId": "01b5477a-374e-49a0-8b68-7dbfe8f0b74f"
}

SDK Samples


You can access the SDK samples for Asset Service on GitHub: