Call this operation to delete a specified product.

Description

You can delete a product if you no longer need it. After a product is deleted, the ProductKey of the product is no longer valid, and all information associated with the product is deleted. Furthermore, you cannot perform actions on the product after it has been deleted.

Request parameters

Parameter Type Required Description
Action String Yes The operation that you want to perform. Set the value toDeleteProduct.
ProductKey String Yes The unique identifier of the product that you want to delete.
Common Request Parameters - Yes For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Description
RequestId String The globally unique ID generated by Alibaba Cloud for the request.
Success Boolean Indicates whether the call is successful. A value of true indicates that the call is successful. A value of false indicates that the call has failed.
ErrorMessage String The error message returned when the call fails.
Code String The error code returned when the call fails. For more information about error codes, see Error codes.

Examples

Request example

https://iot.cn-shanghai.aliyuncs.com/?Action=DeleteProduct
&ProductKey=a1QDKAU****
&Public Request Parameters

Response example

  • JSON format
    {
      "RequestId":"57b144cf-09fc-4916-a272-a62902d5b207",
      "Success": true
    }
  • XML format
    <? xml version="1.0" encoding="UTF-8"? >
     <DeleteDeviceResponse>
          <RequestId>57b144cf-09fc-4916-a272-a62902d5b207</RequestId>
          <Success>true</Success>
      </DeleteDeviceResponse>