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

# useRevokeDelegation

```ts theme={null}
function useRevokeDelegation(): UseRevokeDelegationReturnType;
```

Hook that provides a function to revoke all active delegations for the current end user.

## Returns

[`UseRevokeDelegationReturnType`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-hooks/Type-Aliases/UseRevokeDelegationReturnType)

An object containing the revokeDelegation function.

## Example

```tsx theme={null}
const { revokeDelegation } = useRevokeDelegation();
await revokeDelegation();
```
