Answer
It is not possible to withdraw funds which are currently invested. Only uninvested cash- the funds held in your Cash Account- can be withdrawn.
Your balance is the sum of the positions in your portfolio, your Cash Account, and cash in held other currencies. To withdraw your full balance, you may need to sell your positions and convert funds to your base currency first.