---
title: "Delete a Mode"
method: DELETE
path: "/locations/{locationId}/modes/{modeId}"
tags: ["Modes"]
---

# Delete a Mode

`DELETE /locations/{locationId}/modes/{modeId}`

## Request

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

Delete a Mode if no automations are affected. Otherwise, return the list of affected automations in a 409 response. When making a request with a valid `requestId` query parameter, the Mode will be deleted.

## Query parameters

- `requestId` string

## Response `200`

An empty object response.

- DeleteModeResponse: An empty object response.

## Other responses

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

## Changes

- **2023-11-27** `e8dd260a33ec`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/smartthings/apis/smartthings-api/changes/locations/:locationId/modes/:modeId/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)
