![]() |
![]()
| ![]() |
![]()
NAMElightning-dev-forget-channel -- Command to remove the DB entries from the database after a close SYNOPSIS(WARNING: For advanced users only) dev-forget-channel id [short_channel_id] [channel_id] [force] DESCRIPTIONNever use any dev command, including this one, unless you know exactly what you are doing; and have checked with a developer that your understanding is correct. They are meant only as a means of last resort and have the potential to mess things up. You have been warned❗️ The dev-forget-channel forgets the channel with given details. It will perform additional checks on whether it is safe to forget the channel, and only then remove the channel from the DB. Notice that this command is only available if CLN was started with --developer. Also see https://docs.corelightning.org/docs/faq#how-to-forget-about-a-channel
RETURN VALUEOn success, an object is returned, containing:
ERRORSThe following errors may be reported:
AUTHORRusty Russell <rusty@rustcorp.com.au> is mainly responsible. SEE ALSOlightning-close(7), lightning-listchannels(7), lightning-listpeerchannels(7), lightning-listfunds(7) RESOURCESMain web site: https://github.com/ElementsProject/lightning EXAMPLESExample 1: Forget a channel by peer pubkey when only one channel exists with the peer: Request: $ lightning-cli dev-forget-channel -k "id"="nodeid050505050505050505050505050505050505050505050505050505050505" { Response: { Example 2: Forget a channel by short channel id when peer has multiple channels: Request: $ lightning-cli dev-forget-channel -k "id"="nodeid030303030303030303030303030303030303030303030303030303030303" "short_channel_id"="111x1x1" "force"=True { Response: {
|