LIGHTNING-AUTOCLEAN-STATUS(7)
π LIGHTNING-AUTOCLEAN-STATUS β¨
okay so bestie, this is a page from the lightning-autoclean-status manual (section 7, we stan a numbered section), and it's literally your guide to snooping on the auto-delete situation for old invoices, payments and forwards. no cap, it's useful.
πΈ NAME πΈ
autoclean-status β peek at the auto-delete status of your old invoices / payments / forwards π
π SYNOPSIS π
autoclean-status [subsystem]
π¦ DESCRIPTION π¦
so the autoclean-status RPC command tells you, fr fr, all about the status of the autoclean plugin β and if you want, you can ask about just one subsystem. slay.
subsystem(string, optional) (one of"succeededforwards","failedforwards","succeededpays","failedpays","paidinvoices","expiredinvoices","networkevents"): which subsystem you're asking about, bestie. the currently supported subsystems are:failedforwards: routed payments which did not succeed (failedorlocal_failedinlistforwardsstatus). πsucceededforwards: routed payments which succeeded (settledinlistforwardsstatus). π₯failedpays: payment attempts which did not succeed (failedinlistpaysstatus). πsucceededpays: payment attempts which succeeded (completeinlistpaysstatus). β¨expiredinvoices: invoices which were not paid (and cannot be) (expiredinlistinvoicesstatus). πpaidinvoices: invoices which were paid (paidinlistinvoicesstatus). πnetworkevents: all events inlistnetworkevents(added v25.12). π
π RETURN VALUE π
quick heads-up before we go in: the age parameters are set by the various autoclean-...-age parameters in your configuration β go see lightningd-config(5) for those.
on success, you get back an object containing autoclean. that object contains:
succeededforwards(object, optional):enabled(boolean): whether autocleaning is enabled for successfullistforwards.cleaned(u64): total number of deletions done (ever).
if enabled is true: - age (u64): age (in seconds) to delete successful listforwards.
failedforwards(object, optional):enabled(boolean): whether autocleaning is enabled for failedlistforwards.cleaned(u64): total number of deletions done (ever).
if enabled is true: - age (u64): age (in seconds) to delete failed listforwards.
succeededpays(object, optional):enabled(boolean): whether autocleaning is enabled for successfullistpays/listsendpays.cleaned(u64): total number of deletions done (ever).
if enabled is true: - age (u64): age (in seconds) to delete successful listpays/listsendpays.
failedpays(object, optional):enabled(boolean): whether autocleaning is enabled for failedlistpays/listsendpays.cleaned(u64): total number of deletions done (ever).
if enabled is true: - age (u64): age (in seconds) to delete failed listpays/listsendpays.
paidinvoices(object, optional):enabled(boolean): whether autocleaning is enabled for paidlistinvoices.cleaned(u64): total number of deletions done (ever).
if enabled is true: - age (u64): age (in seconds) to paid listinvoices.
expiredinvoices(object, optional):enabled(boolean): whether autocleaning is enabled for expired (unpaid)listinvoices.cleaned(u64): total number of deletions done (ever).
if enabled is true: - age (u64): age (in seconds) to expired listinvoices.
networkevents(object, optional) (added v25.12):enabled(boolean): whether autocleaning is enabled fornetworkevents. (added v25.12)cleaned(u64): total number of deletions done (ever). (added v25.12)
if enabled is true: - age (u64): age (in seconds) to clean networkevents. (added v25.12)
π§ AUTHOR π§
Rusty Russell rusty@rustcorp.com.au is mainly responsible. iconic behavior, honestly. π«Ά
β SEE ALSO β
lightningd-config(5), lightning-listinvoices(7), lightning-listpays(7), lightning-listforwards(7)
iykyk, go read those next.
π RESOURCES π
main web site: https://github.com/ElementsProject/lightning β literally the mothership. πΈ
π₯ EXAMPLES π₯
Example 1:
Request:
$ lightning-cli autoclean-status -k "subsystem"="expiredinvoices"
{
"id": "example:autoclean-status#1",
"method": "autoclean-status",
"params": {
"subsystem": "expiredinvoices"
}
}
Response:
{
"autoclean": {
"expiredinvoices": {
"enabled": true,
"age": 300,
"cleaned": 0
}
}
}
Example 2:
Request:
$ lightning-cli autoclean-status
{
"id": "example:autoclean-status#2",
"method": "autoclean-status",
"params": {}
}
Response:
{
"autoclean": {
"succeededforwards": {
"enabled": false,
"cleaned": 0
},
"failedforwards": {
"enabled": false,
"cleaned": 0
},
"succeededpays": {
"enabled": false,
"cleaned": 7
},
"failedpays": {
"enabled": false,
"cleaned": 0
},
"paidinvoices": {
"enabled": false,
"cleaned": 0
},
"expiredinvoices": {
"enabled": true,
"age": 300,
"cleaned": 0
}
}
}
okay that's the whole thing, bestie! this page came to you courtesy of Core Lightning v26.06.9 and it's dated right there in the footer spot β go forth and check your autoclean status, periodt π β¨π
π¦ 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