As far as I know, there isn't a method for deleting failed or completed payments, like there is for invoices (delinvoice). The aim is to reduce the output of
lightning-cli listpays
I think this can be marked good first issue ?
Now, I delete all payments via:
sqlite3 -header -line lightningd.sqlite3 'DELETE FROM payments'
sqlite3 -header -line lightningd.sqlite3 'DELETE FROM invoices'
in .lightning/bitcoin
@cdecker Maybe this Issue can be close by this PR https://github.com/ElementsProject/lightning/pull/3899
Definitely, thanks for looking this us @vincenzopalazzo
Tested it and it works. Thanks to all involved but in particular @vincenzopalazzo!
Most helpful comment
Tested it and it works. Thanks to all involved but in particular @vincenzopalazzo!