LIGHTNING-DELNETWORKEVENT(7)

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

πŸ’… LIGHTNING-DELNETWORKEVENT πŸ’…

okay so bestie, welcome to lightning-delnetworkevent, aka the lightning-delnetworkevent(7) manual page β€” the tiny little RPC that sweeps one (1) network event out of your life 🧹✨


🌸 NAME 🌸

delnetworkevent β€” the command that deletes one single entry from listnetworkevents. that's it. that's the whole job. lowkey iconic for how simple it is πŸŽ€


✨ SYNOPSIS ✨

delnetworkevent created_index

πŸ¦‹ DESCRIPTION πŸ¦‹

fr fr, this command was added in v25.12. remember that πŸ‘‘

The delnetworkevent RPC command removes a single event from listnetworkevents, and it does it by using the uniquely-identifying created_index 🌟 like a little name tag for the entry, except the name tag is a number, and the entry is a database row, and you're deleting it πŸ’€

This command is mainly used by the autoclean plugin (peep lightningd-config(7) for the config tea β˜•). The way the whole thing works: these database entries are only kept for your own analysis β€” so removing them has no effect on the running of your node. none. zero. nada. your node literally does not care πŸ™ˆβœ¨ (which honestly? main character energy of the database. it's giving "I'm just here for the vibes")

  • created_index (u64) β€” the unique created_index of the entry. yes bestie, that's the one. that's the whole argument 🫢

⭐ RETURN VALUE ⭐

on success you get back an empty object. that's it. 🎁 no data, no drama, just an empty lil {} and a job well done πŸ’…


πŸ’€ ERRORS πŸ’€

sometimes life says no. here's what can go wrong:

  • 1402 β€” the listnetworkevents specified does not exist. πŸ₯² you tried to delete a thing that isn't there, bestie. it happens to the best of us.

πŸ‘‘ AUTHOR πŸ‘‘

Rusty Russell rusty@rustcorp.com.au is mainly responsible. thank him, he's the moment 🌈


🌸 SEE ALSO 🌸

  • lightning-autoclean(7) β€” the plugin that actually uses this bad boy 🧚

πŸ”₯ RESOURCES πŸ”₯

Main web site: https://github.com/ElementsProject/lightning β€” go click it, it's free πŸ’œ


and that's a wrap, bestie!! πŸŽ€ this page is from Core Lightning v26.06.9, and it's the LIGHTNING-DELNETWORKEVENT(7) manual page β€” so go forth, delete exactly one network event, and do it with your whole chest πŸ¦‹βœ¨πŸ«Ά

πŸ“¦ where this page comes from