---
title: "Delete Preference by ID"
method: DELETE
path: "/devicepreferences/{preferenceId}"
tags: ["Preferences"]
---

# Delete Preference by ID

`DELETE /devicepreferences/{preferenceId}`

## Request

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

Delete a preference by preference ID.

## Headers

- `X-ST-Organization` string, ^(?:([0-9a-fA-F]{32})|([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}))$

## Response `200`

Preference deleted

- object

## Other responses

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

## Changes

- **2022-12-19** `adcacfc2749d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/smartthings/apis/smartthings-api/changes/devicepreferences/:preferenceId/delete.md)

---

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