# Renounce Ownership

Let's remove the function to remove an owner. This was inherited from Ownable.sol, but makes no sense here.

We simply stop this with a revert. Add the following function to the SharedWallet:

```solidity
contract SharedWallet is Allowance {

    //...

    function renounceOwnership() public override onlyOwner {
        revert("can't renounceOwnership here"); //not possible with this smart contract
    }

    //...
}
```

![](https://1628544884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTgomzlmn9NrxUY0OQ3cD%2Fuploads%2Fy28YWvVkSvDpka9oge8Z%2Fimage.png?alt=media\&token=1e483ce4-102e-4754-bafc-fa2d65af9c53)
