---
title: "Delete a manages relation"
method: DELETE
path: "/v1/role/{parentRoleId}/manages/{managesId}"
tags: ["Manages"]
---

# Delete a manages relation

`DELETE /v1/role/{parentRoleId}/manages/{managesId}`

## 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/{parentRoleId}/manages/{managesId}`
- Auth: HTTP bearer

Delete a specified manages relation. If the child role of the manages relation was only connected to the rest of the role graph by the deleted relation, this child role will be deleted as well. In that case, a cascade of deletions of nodes and relations in the graph may occur. A user can only execute this action if he is a member of an autorizing role which has (direct or indirect) roleManagement rights for the parent role of the manages relation

## Path parameters

- `parentRoleId` integer, required
- `managesId` integer, required

## Response `200`

The ids of the deleted nodes and relations

- 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)
