From the Projects view, select the Project the payment relates to.
Select the "Invoices/Payments" tab.
Under the Payments section, locate the payment you wish to remove. Click the 3 dots and select "Payment not received"
Click to "Mark payment as failed"
The payment will now show as failed, and will be removed from the invoice