---
title: "POST /api/delete-role"
method: POST
path: "/api/delete-role"
tags: ["Role API"]
---

# POST /api/delete-role

`POST /api/delete-role`

delete role

## Request body

- ObjectRole
  - `createdTime` string
  - `description` string
  - `displayName` string
  - `domains` string[]
  - `isEnabled` boolean
  - `name` string
  - `owner` string
  - `roles` string[]
  - `users` string[]

## Response `200`

The Response object

## Changes

- **2022-02-18** `cb092f825446` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/casdoor/apis/casdoor-restful-api/changes/api/delete-role/post.md)

---

[API](https://skmtc.dev/casdoor/apis/casdoor-restful-api.md) · [All operations](https://skmtc.dev/casdoor/apis/casdoor-restful-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/casdoor/casdoor-restful-api/revisions/be9a5584b821/schema)
