Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create the equivalent of "delinvoice" for payments #1995

Closed
ghost opened this issue Oct 7, 2018 · 5 comments
Closed

Create the equivalent of "delinvoice" for payments #1995

ghost opened this issue Oct 7, 2018 · 5 comments
Labels
good first issue good for onboarding

Comments

@ghost
Copy link

ghost commented Oct 7, 2018

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
@darosior
Copy link
Collaborator

darosior commented Nov 4, 2019

I think this can be marked good first issue ?

@ghost
Copy link
Author

ghost commented Dec 29, 2019

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

@vincenzopalazzo
Copy link
Collaborator

@cdecker Maybe this Issue can be close by this PR #3899

@cdecker
Copy link
Member

cdecker commented Sep 27, 2020

Definitely, thanks for looking this us @vincenzopalazzo

@cdecker cdecker closed this as completed Sep 27, 2020
@ghost
Copy link
Author

ghost commented Sep 27, 2020

Tested it and it works. Thanks to all involved but in particular @vincenzopalazzo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue good for onboarding
Projects
None yet
Development

No branches or pull requests

4 participants