---
title: "POST /delete-role-rule"
method: POST
path: "/delete-role-rule"
tags: ["v2"]
---

# POST /delete-role-rule

`POST /delete-role-rule`

## Request body

- DeleteRoleRule
  - `json` boolean — Set output format to JSON
  - `path` string, required — The path the rule refers to
  - `role-name` string, required — The role name to be updated
  - `rule-type` string — item-rule, role-rule, auth-method-rule, search-rule, reports-rule, gw-reports-rule, sra-reports-rule, ara-reports-rule, sra-rule, ara-rule, usage-reports-rule, event-rule, event-forwarder-rule, reverse-rbac-rule
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication

## Response `200`

deleteRoleRuleResponse wraps response body.

- DeleteRoleRuleOutput
  - `deleted` boolean
  - `result` string

## Other responses

- `default` — errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/versions/0ceb25634501/schema)
