---
title: "Delete device (deleteDevice)"
method: DELETE
path: "/api/device/{deviceId}"
tags: ["device-controller"]
---

# Delete device (deleteDevice)

`DELETE /api/device/{deviceId}`

Deletes the device, it's credentials and all the relations (from and to the device). Referencing non-existing device Id will cause an error.

Available for users with 'TENANT_ADMIN' authority.

## Path parameters

- `deviceId` string, required

## Response `200`

OK

---

[API](https://skmtc.net/thingsboard/apis/thingsboard-rest-api.md) · [All operations](https://skmtc.net/thingsboard/apis/thingsboard-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thingsboard/thingsboard-rest-api/revisions/40169ccdec5c/schema)
