Delete
To delete an existing role you need to execute a DELETE request against the /roles/:idOrName endpoint. Role name is more human readable compared to ids, but it is up to you what you are going to use.
You can find id and name inside the create role response.
This is a destructive operation which cannot be undone. Note also that you are not allowed to delete roles which are currently used inside a live session and also roles which are set as default roles in rooms.
Request
Response (204 -> No Content)
Response is empty because the role was deleted and there is no content to return.
Last updated