> ## Documentation Index
> Fetch the complete documentation index at: https://base-a060aa97-docs-add-b20-spec.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# IB20.renounceRole

> Generated B20 reference for renounceRole(bytes32,address).

[Related concept](/base-chain/specs/upgrades/beryl/b20/specification/concepts/roles-and-access-control)

## Signature

```solidity theme={null}
function renounceRole(bytes32 role, address callerConfirmation) external;
```

| Field               | Value                           |
| ------------------- | ------------------------------- |
| Selector            | `0x36568abe`                    |
| Canonical signature | `renounceRole(bytes32,address)` |

## Description

Caller renounces `role` for themselves. Emits `RoleRevoked`.
Dev: Reverts with `AccessControlBadConfirmation` when `callerConfirmation != msg.sender`.
Dev: Reverts with `LastAdminCannotRenounce` when `role == DEFAULT_ADMIN_ROLE` and the caller is the last default admin.
Param: role               Role to renounce.
Param: callerConfirmation MUST equal `msg.sender`.

## Access control

Read-only or ERC-20-standard access rules unless the NatSpec states otherwise.

## Policy interaction

No direct policy interaction.

## Example

```solidity theme={null}
IB20(target).renounceRole(arg0, arg1);
```

## Related

* [IB20 reference](/base-chain/specs/upgrades/beryl/b20/specification/reference/interfaces/IB20)
* [Constants & addresses](/base-chain/specs/upgrades/beryl/b20/specification/reference/constants-and-addresses)
