How to delete a bank transaction?

I am trying to implement the match a manual entry to an imported bank transaction feature via the API.

Unfortunately I have hit a wall with deleting the relevant transaction. The API doesn’t appear to allow one to delete a bank transaction. I tried via curl but got the incorrect error, “Unable to delete transaction as it has explanations”. (The transaction does not have any explanations.)

curl https://api.sandbox.freeagent.com/v2/bank_transactions/123456 \
>   -H "Authorization: Bearer ..." \
>   -H "Content-Type: application/json" \
>   -H "Accept: application/json" \
>   -X DELETE

I wondered whether this error stemmed from the transaction’s unexplained amount being 0, so I tried to update it to the transaction’s amount. However there’s also no way to update a transaction via the API. In this case I got the error, “Resource not found”.

curl https://api.sandbox.freeagent.com/v2/bank_transactions/123456 \
>   -H "Authorization: Bearer ..." \
>   -H "Content-Type: application/json" \
>   -H "Accept: application/json" \
>   -d '{"bank_transaction":{"unexplained_amount":500}}' \
>   -X PUT

I looked through this forum and found requests dating back over a decade for updating and delete transactions.

Please could you make this possible?

Yours,
Andrew Stewart