LIGHTNING-DELFORWARD(7)
π lightning-delforward(7) β delforward
okay so bestie, picture this: you're deep in listforwards and there's just one little entry you need gone. That's literally this whole page. It's the delforward command, section 7 of the manual, and it's here to delete exactly one forward and nothing else. No cap. π
β¨ SYNOPSIS β¨
delforward in_channel in_htlc_id status
three args, that's the whole vibe. π¦
πΈ DESCRIPTION πΈ
The delforward RPC command removes a single forward from listforwards, using the uniquely-identifying in_channel and in_htlc_id (and, as a sanity check, the status) given by that command. π«Ά
This command is mainly used by the autoclean plugin (see lightningd-config(7)). And here's the tea β: these database entries are only kept for your own analysis, so removing them has no effect on the running of your node. Like, zero. Your node does not care. Delete away. π
in_channel(short_channel_id) β Only the matching forwards on the given inbound channel are deleted. Heads up though: forlistforwardsentries without anin_htlc_identry (no longer created in v22.11, but can exist from older versions), a value of18446744073709551615can be used β but then it will delete all entries withoutin_htlc_idfor thisin_channelandstatus. so like, be careful with that one, she's a big number and she means business πin_htlc_id(u64) β The unique HTLC id the sender gave this (not present if incoming channel was closed before upgrade to v22.11).status(string) (one of"settled","local_failed","failed") β The status of the forward to delete. You cannot delete forwards which have statusoffered(i.e. are currently active). active ones are off-limits, bestie, no exceptions π₯
π¦ RETURN VALUE π¦
On success, an empty object is returned. That's it. That's the reward. {} and a little serotonin. β¨
π ERRORS π
The following errors may be reported:
1401β The forward specified does not exist. she's not here, girl, check yourlistforwardsagain π
π AUTHOR π
Rusty Russell rusty@rustcorp.com.au is mainly responsible. main character energy fr fr π
π SEE ALSO π
lightning-autoclean(7)
β RESOURCES β
Main web site: https://github.com/ElementsProject/lightning β go touch grass in the repo, it's iconic π§
π EXAMPLES π
Example 1:
Request:
$ lightning-cli delforward -k "in_channel"="109x1x1" "in_htlc_id"=4 "status"="local_failed"
{
"id": "example:delforward#1",
"method": "delforward",
"params": {
"in_channel": "109x1x1",
"in_htlc_id": 4,
"status": "local_failed"
}
}
Response:
{}
ate and left no crumbs π
Example 2:
Request:
$ lightning-cli delforward -k "in_channel"="109x1x1" "in_htlc_id"=21 "status"="failed"
{
"id": "example:delforward#2",
"method": "delforward",
"params": {
"in_channel": "109x1x1",
"in_htlc_id": 21,
"status": "failed"
}
}
Response:
{}
another one gone, slay π
okay that's the whole page, you're officially a delforward expert now, iykyk π«Ά this gem was brought to you by Core Lightning v26.06.9 β mwah, go delete some forwards bestie β¨π
π¦ where this page comes from
- nixpkgs unstable: clightning 26.06.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms