---
title: "Delete an affiliation by admin"
method: DELETE
path: "/affiliations/affiliations-admin"
tags: ["Affiliations"]
---

# Delete an affiliation by admin

`DELETE /affiliations/affiliations-admin`

## Request

- Base URL: `https://api.xfa.tech`
- URL: `https://api.xfa.tech/affiliations/affiliations-admin`
- Auth: HTTP bearer

## Request body

- object
  - `organization_id` string: Organization ID
  - `device_ids` string[]: Device IDs
  - `email` string: Email address of the user whose invitations should also be removed

## Response `204`

Affiliation deleted

## Other responses

- `409`: The approvals of one or more devices changed during removal. Every other device was removed (including its shadow); only the listed devices remain and can be retried.

---

[API](https://skmtc.dev/xfa/apis/xfa-api.md) · [All operations](https://skmtc.dev/xfa/apis/xfa-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xfa/apis/xfa-api/revisions/1a1be0e8972b?raw)
