---
title: "Deregister device from IoT Hub."
method: DELETE
path: "/oic/sec/account"
tags: ["Authorization"]
---

# Deregister device from IoT Hub.

`DELETE /oic/sec/account`

Delete a device. This also removes all resources in the device on cloud side. In case the session is already created - TLS connection is already authorized (see oic.sec.session); no additional properties are required.
example: /oic/account?di=9cfbeb8e-5a1e-4d1c-9d01-00c04fd430c8&accesstoken=0f3d9f7fe5491d54077d

## Response `204`

2.04 Deleted response informing the device is successfully deleted.

---

[API](https://skmtc.dev/plgd-dev/apis/coap-gateway.md) · [All operations](https://skmtc.dev/plgd-dev/apis/coap-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/plgd-dev/coap-gateway/revisions/65b2362bb16f/schema)
