---
title: "DeleteDevice"
method: DELETE
path: "/devices/{deviceId}"
tags: ["All Devices"]
---

# DeleteDevice

`DELETE /devices/{deviceId}`

Delete a device from your account. This will forward a DEVICE DISCON message on the /c2d MQTT topic, allowing the device to gracefully disconnect. You can [view the format here](https://github.com/nRFCloud/application-protocols/tree/v1/schemas/cloudToDevice/device).
```sh
curl -X DELETE $API_HOST/v1/devices/$DEVICE_ID -H "Authorization: Bearer $API_KEY"
```

## Path parameters

- `deviceId` string, required — This is the canonical device id used in the device certificate, and as the MQTT client id.

## Response `202`

---

[API](https://skmtc.dev/nrfcloud/apis/nrf-cloud-rest-api.md) · [All operations](https://skmtc.dev/nrfcloud/apis/nrf-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nrfcloud/nrf-cloud-rest-api/revisions/c4e56e458ebf/schema)
