---
title: "Given the ID for a device and an associated relationship ID, delete the relationship. The given device ID can be that of the upstream or downstream device."
method: DELETE
path: "/devices/{deviceId}/relationships/{relationshipId}"
---

# Given the ID for a device and an associated relationship ID, delete the relationship. The given device ID can be that of the upstream or downstream device.

`DELETE /devices/{deviceId}/relationships/{relationshipId}`

Delete a device relationship

## Path parameters

- `deviceId` string, required
- `relationshipId` string, required

## Query parameters

- `api-version` string, required

## Response `204`

Success

## Other responses

- `default` — An error response received from the IoT Central Service.

---

[API](https://skmtc.net/azure/apis/iotcentral-iotcentral.md) · [All operations](https://skmtc.net/azure/apis/iotcentral-iotcentral/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/iotcentral-iotcentral/revisions/565d8813cbd3/schema)
