Service - Delete Device

Delete the identity of a device from the identity registry of an IoT hub.
Delete the identity of a device from the identity registry of an IoT hub. This request requires the If-Match header. The client may specify the ETag for the device identity on the request in order to compare to the ETag maintained by the service for the purpose of optimistic concurrency. The delete operation is performed only if the ETag sent by the client matches the value maintained by the server, indicating that the device identity has not been modified since it was retrieved by the client. To force an unconditional delete, set If-Match to the wildcard character (*).

DELETE https://fully-qualified-iothubname.azure-devices.net/devices/{id}?api-version=2018-06-30

URI Parameters

Name In Required Type Description
id
path True
  • string

Device ID.

api-version
query True
  • string

Version of the Api.

Request Header

Name Required Type Description
If-Match
  • string

Responses

Name Type Description
204 No Content

No Content