Delete Thing Hierarchy

Deletes thing hierarchy with a specific ID

The ETag value is not mandatory to delete a thing hierarchy. However, to delete a thing hierarchy using ETag, you must retrieve the ETag value of the thing hierarchy using the GET (/ThingHierarchy/v1/ThingHierarchies('<thing hierarchy ID>')) service. The ETag value is assigned to the request header parameter If-Match in the DELETE request. If the ETag value is not correct, the server sends HTTP response code 412 .

Request

URI: /v1/ThingHierarchies('<thing hierarchy ID>')

Operation Type: CRUD

HTTP Method: DELETE

Permissions:

<ths>.d

<ohs>.d

Request Header Parameters

Parameter Required Values
Accept-Language No Language of the thing type description. The default language is en.
If-Match No Latest ETag value of a specific thing hierarchy that is updated using the PATCH request.

Request Parameters

Parameter Required Data Type Description
HierarchyID Yes string Unique thing hierarchy identifier

Request Example

/ThingHierarchy/v1/ThingHierarchies('582E4688A7647F2CE200229BE0434C65')

Response

Format: JSON

Response Status and Error Codes

Code Description
204 Thing hierarchy deleted successfully.