LIGHTNING-ASKRENE-REMOVE-LAYER(7)

πŸ“¦
version 26.06.9 Β· 2 versions
, in nixpkgs unstable

✨ NAME ✨

askrene-remove-layer β€” the command that destroys a layer πŸ’… (yes, really, it's giving villain era but make it RPC)

Ok so real talk, bestie, this is from the lightning-askrene-remove-layer(7) manual β€” section 7, iykyk πŸŽ€


🌸 SYNOPSIS 🌸

askrene-remove-layer layer

πŸ¦‹ DESCRIPTION πŸ¦‹

This command was added in v24.11, so if you're on something older, it's literally not gonna be there, no cap 😭

The askrene-remove-layer RPC command tells askrene to forget a layer. That's it. That's the whole vibe. Poof, gone, bye πŸ‘‹βœ¨

  • layer (string) β€” the name of the layer to remove. Just the name, that's all it needs 🫢

πŸ’– RETURN VALUE πŸ’–

On success, you get an empty object back. That's the whole flex:

{}

Nothing in it. Zero notes. Iconic behavior honestly πŸ‘‘


🧚 AUTHOR 🧚

Rusty Russell rusty@rustcorp.com.au is mainly responsible for this one. Slay, Rusty πŸ’œ


🌈 SEE ALSO 🌈


⭐ RESOURCES ⭐

Main web site: https://github.com/ElementsProject/lightning

Go touch grass in the repo, it's full of good stuff 🌱


πŸ”₯ EXAMPLES πŸ”₯

Example 1:

Request:

$ lightning-cli askrene-remove-layer -k "layer"="test_layers"
{
  "id": "example:askrene-remove-layer#1",
  "method": "askrene-remove-layer",
  "params": {
    "layer": "test_layers"
  }
}

Response:

{}

See? Empty object. Cried a little, felt nothing, moved on 🫢✨


ngl bestie, once you remove a layer it's gone β€” askrene is not keeping receipts for you. Double-check with lightning-askrene-listlayers(7) before you hit enter, fr fr πŸ’€

Okay that's the whole page, mwah πŸ’‹ β€” sourced from Core Lightning v26.06.9, and this little manual page is dated the same, so it's giving fresh-out-the-oven energy πŸ“πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from