Delete Product¶
Delete a product.
Operation Permissions¶
| Required Authorization | Required Operation Permission | 
|---|---|
| Device Management | Full Access | 
Prerequisite¶
Ensure that there are no devices under the product before deleting.
Request Format¶
POST https://{apigw-address}/connect-service/v2.1/products?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>> | 
| productKey | Query | Mandatory | String | The product key. | 
Response Parameters¶
| Name | Data Type | Description | 
|---|---|---|
| data | String | The product key of the deleted product. | 
Error Codes¶
| Code | Message | Description | 
|---|---|---|
| 11404 | Product cannot be found | The  | 
| 11619 | Existing Device Restrictions | There are devices under the product to be deleted | 
Samples¶
Request Sample¶
url: https://{apigw-address}/connect-service/v2.1/products?action=delete&orgId=yourOrgId&productKey=yourProductKey
method: POST
Return Sample¶
{
    "code":0,
    "msg":"OK",
    "requestId":"ef6a7fbb-0834-45fb-b1d4-6bd2dc25796f",
    "data":"atC41UIe"
}