---
title: "Delete device attributes (deleteDeviceAttributes)"
method: DELETE
path: "/api/plugins/telemetry/{deviceId}/{scope}"
tags: ["telemetry-controller"]
---

# Delete device attributes (deleteDeviceAttributes)

`DELETE /api/plugins/telemetry/{deviceId}/{scope}`

Delete device attributes using provided Device Id, scope and a list of keys. Referencing a non-existing Device Id will cause an error

Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.

## Path parameters

- `deviceId` string, required
- `scope` 'SERVER_SCOPE' | 'SHARED_SCOPE' | 'CLIENT_SCOPE', required

## Query parameters

- `keys` string
- `params` MultiValueMapStringString, required
  - `all` object

## Response `200`

Device attributes was removed for the selected keys in the request. Platform creates an audit log event about device attributes removal with action type 'ATTRIBUTES_DELETED'.

- string

## Other responses

- `400` — Platform returns a bad request in case if keys or scope are not specified.
- `401` — User is not authorized to delete device attributes for selected entity. Most likely, User belongs to different Customer or Tenant.
- `500` — The exception was thrown during processing the request. Platform creates an audit log event about device attributes removal with action type 'ATTRIBUTES_DELETED' that includes an error stacktrace.

---

[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)
