> For the complete documentation index, see [llms.txt](https://docs.bancor.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bancor.network/developer-guides/write-functions/removing-liquidity/cancelwithdrawal.md).

# cancelWithdrawal()

{% hint style="info" %}
Every pending withdrawal has a unique ID. To get a list of pending withdrawals for an address, see [withdrawalRequestIds()](/developer-guides/read-functions/withdrawals/withdrawalrequestids.md).
{% endhint %}

### **Function** cancelWithdrawa&#x6C;**()**

```solidity
function cancelWithdrawal(uint256 id) external
```

This function cancels a pending withdrawal. It accepts the ID of the pending withdrawal as arguments, and can only be done by the address that owns the pending withdrawal.&#x20;

### **Function Arguments**

<table><thead><tr><th width="161">Name</th><th width="150">Type</th><th>Description</th></tr></thead><tbody><tr><td>id</td><td>uint256</td><td>The ID of the pending withdrawal to cancel. </td></tr></tbody></table>

This function does not return anything.
