Delete application and transfer all algos in escrow

Hi, I’m trying to delete an application but I wanted to do so sending all the algos in the escrow to the a specified address. What I have done is to build 2 inner transaction (one to close out the asa the escrow has opted in before and the second to send the remaining algos) that are sended in the application delete call. This is giving the error balance 0 below min 100000 (0 assets). Can the escrow be completely empty when the application is deleted?

EDIT: managed to to so with the close_remainder_to field of the payment transaction