The delpay RPC command deletes a payment with the given payment_hash if its status is either complete or failed. Deleting a pending payment is an error.
payment_hash: The unique identifier of a payment.
status: Expected status of the payment.
Only deletes if the payment status matches.
The delpay RPC command deletes a payment with the given
payment_hashif its status is eithercompleteorfailed. Deleting apendingpayment is an error.EXAMPLE JSON REQUEST