I simply make a internal transfer from one account to another account.
After that, I reconcile the entry.
Then I go to that bank entry and change its type from cash to direct debit and click Update.
After that, the bank entry disappeared. The Account has been set to empty.