It is a bit random but using the RemoveIf statement sometimes works, sometimes doesn't.
Nothing changes in the code, just the parameters. The items that could not be reomoved in PowerApps were successfully removed with T-SQL so there are no database constraint issues there.
The code used is:
RemoveIf('[dbo].[Invoices_Transactions]', Invoice = ThisItem.Invoice, Transaction = Last(CurrentTransaction).ID)