---
title: "Delete a member relation"
method: DELETE
path: "/v1/role/{roleId}/member/{memberId}"
tags: ["Member"]
---

# Delete a member relation

`DELETE /v1/role/{roleId}/member/{memberId}`

## Request

- Base URL: `https://api.eniris.be` (the document declares no server; this is the origin it was published from)
- URL: `https://api.eniris.be/v1/role/{roleId}/member/{memberId}`
- Auth: HTTP bearer

A user can only execute this action if he is a member of an authorizing role which satisfies one of the following conditions:
        <ul>
          <li>
            The authorizing role has *direct or indirect* userManagement rights for the role to which a member is deleted
          </li>
          <li>
            The authorizing role has *indirect* roleManagement rights for the role to which a member is deleted
          </li>
          <li>
            The authorizing role is the role from which a member is removed, and the removed member is the user itself
          </li>
        </ul>

## Path parameters

- `roleId` integer, required
- `memberId` integer, required

## Response `200`

The id of the deleted member (in the deletedRelationIds property)

- Def6: Schema for specifying deleted database nodes and relations
  - `deletedNodeIds` unknown[], required
    - unknown
  - `deletedRelationIds` unknown[], required
    - unknown

## Other responses

- `400`: Invalidly formatted body or query parameter
- `401`: Authentication required or token invalid
- `403`: User does not have appropriate role management rights

---

[API](https://skmtc.dev/eniris/apis/eniris-metadata-telemetry-query-api.md) - [All operations](https://skmtc.dev/eniris/apis/eniris-metadata-telemetry-query-api/llms.txt) - [OpenAPI document](https://skmtc.dev/eniris/apis/eniris-metadata-telemetry-query-api/revisions/93c02ba1e0d2?raw)
