2020-12-27 01:10:02 +01:00
|
|
|
## chantools removechannel
|
|
|
|
|
|
|
|
|
|
Remove a single channel from the given channel DB
|
|
|
|
|
|
2021-01-01 13:19:48 +01:00
|
|
|
### Synopsis
|
|
|
|
|
|
|
|
|
|
Opens the given channel DB in write mode and removes one
|
|
|
|
|
single channel from it. This means giving up on any state (and therefore coins)
|
|
|
|
|
of that channel and should only be used if the funding transaction of the
|
|
|
|
|
channel was never confirmed on chain!
|
|
|
|
|
|
|
|
|
|
CAUTION: Running this command will make it impossible to use the channel DB
|
|
|
|
|
with an older version of lnd. Downgrading is not possible and you'll need to
|
2025-03-10 17:41:25 -03:00
|
|
|
run lnd v0.19.0-beta or later after using this command!
|
2021-01-01 13:19:48 +01:00
|
|
|
|
2020-12-27 01:10:02 +01:00
|
|
|
```
|
|
|
|
|
chantools removechannel [flags]
|
|
|
|
|
```
|
|
|
|
|
|
2020-12-27 01:40:51 +01:00
|
|
|
### Examples
|
|
|
|
|
|
|
|
|
|
```
|
2021-01-01 13:19:48 +01:00
|
|
|
chantools removechannel \
|
|
|
|
|
--channeldb ~/.lnd/data/graph/mainnet/channel.db \
|
2020-12-27 01:40:51 +01:00
|
|
|
--channel 3149764effbe82718b280de425277e5e7b245a4573aa4a0203ac12cee1c37816:0
|
|
|
|
|
```
|
|
|
|
|
|
2020-12-27 01:10:02 +01:00
|
|
|
### Options
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
--channel string channel to remove from the DB file, identified by its channel point (<txid>:<txindex>)
|
|
|
|
|
--channeldb string lnd channel.backup file to remove the channel from
|
|
|
|
|
-h, --help help for removechannel
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Options inherited from parent commands
|
|
|
|
|
|
|
|
|
|
```
|
2025-10-21 21:27:30 +02:00
|
|
|
--nologfile If set, no log file will be created. This is useful for testing purposes where we don't want to create a log file.
|
|
|
|
|
-r, --regtest Indicates if regtest parameters should be used
|
|
|
|
|
--resultsdir string Directory where results should be stored (default "./results")
|
|
|
|
|
-s, --signet Indicates if the public signet parameters should be used
|
|
|
|
|
-t, --testnet Indicates if testnet parameters should be used
|
2026-03-04 07:01:23 +01:00
|
|
|
--testnet4 Indicates if testnet4 parameters should be used
|
2020-12-27 01:10:02 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### SEE ALSO
|
|
|
|
|
|
|
|
|
|
* [chantools](chantools.md) - Chantools helps recover funds from lightning channels
|
|
|
|
|
|