---
title: "Delete a Device"
method: DELETE
path: "/devices/{deviceId}"
tags: ["Devices"]
---

# Delete a Device

`DELETE /devices/{deviceId}`

## Request

- Base URL: `https://api.smartthings.com/v1`
- URL: `https://api.smartthings.com/v1/devices/{deviceId}`
- Auth: OAuth 2
  - Implicit: `https://auth-global.api.smartthings.com`
  - Scopes: `w:devices:*`
- TypeScript: <https://skmtc.dev/smartthings/apis/smartthings-api/docs/devices/:deviceId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete a device with a given device ID.

If the OAuth token used for this call is for a SmartApp that created the device you are attempting to delete, the call implicitly has permission for this API.

## Response `200`

Device deleted.

- DeleteDeviceCommandsResponse

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too many requests
- `default`: Unexpected error

---

[API](https://skmtc.dev/smartthings/apis/smartthings-api.md) - [All operations](https://skmtc.dev/smartthings/apis/smartthings-api/llms.txt) - [OpenAPI document](https://skmtc.dev/smartthings/apis/smartthings-api/revisions/2788a4236800?raw)
