---
title: "DELETE /services/coordinate/locations/{locationId}/subscriptions/{subscriptionId}"
method: DELETE
path: "/services/coordinate/locations/{locationId}/subscriptions/{subscriptionId}"
tags: ["Coordinate"]
---

# DELETE /services/coordinate/locations/{locationId}/subscriptions/{subscriptionId}

`DELETE /services/coordinate/locations/{locationId}/subscriptions/{subscriptionId}`

## Request

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

Delete a subscription

## Path parameters

- `locationId` string, required
- `subscriptionId` string, ^[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}$, required

## Headers

- `Authorization` string, string, required

## Response `200`

Success

- ServiceDeleteSubscription
  - `locationId` string, required: location ID
  - `count` number, required: number of subscription deleted

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `404`: Not found
- `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)
