> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bedrock.quarry-systems.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Role Permission by Role and Permission

> Remove a permission from a role by specifying both IDs

## Path Parameters

<ParamField path="roleId" type="string" required>
  The role ID
</ParamField>

<ParamField path="permissionId" type="string" required>
  The permission ID to remove from the role
</ParamField>

## Response

Returns a success confirmation.

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE 'https://api.example.com/role-permissions/role_123/perm_456' \
    -H 'Authorization: Bearer YOUR_TOKEN'
  ```

  ```javascript Node.js theme={null}
  const axios = require('axios');

  const { data } = await axios.delete('https://api.example.com/role-permissions/role_123/perm_456', {
    headers: { 'Authorization': 'Bearer YOUR_TOKEN' },
  });
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true
  }
  ```
</ResponseExample>
