2
0
mirror of https://github.com/guggero/chantools synced 2024-11-15 06:12:49 +00:00
chantools/doc/chantools_deletepayments.md

45 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2021-07-26 09:06:47 +00:00
## chantools deletepayments
Remove all (failed) payments from a channel DB
### Synopsis
This command removes all payments from a channel DB.
If only the failed payments should be deleted (and not the successful ones), the
--failedonly flag can be specified.
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
2023-03-09 07:59:55 +00:00
run lnd v0.16.0-beta or later after using this command!'
2021-07-26 09:06:47 +00:00
```
chantools deletepayments [flags]
```
### Examples
```
chantools deletepayments --failedonly \
--channeldb ~/.lnd/data/graph/mainnet/channel.db
```
### Options
```
--channeldb string lnd channel.db file to dump channels from
--failedonly don't delete all payments, only failed ones
-h, --help help for deletepayments
```
### Options inherited from parent commands
```
-r, --regtest Indicates if regtest parameters should be used
-t, --testnet Indicates if testnet parameters should be used
```
### SEE ALSO
* [chantools](chantools.md) - Chantools helps recover funds from lightning channels