What is the bitcoind command to send all coins to another address? I'm running bitcoind and I want to send all my coins to another address. What is the command for this?
To be strict, OP asked to send all coins, which @mschuett didn't answer.

The key thing to do this is the last optional bool argument of the sendtoaddress RPC command called subtractfeefromamount. The way to use it is:

bitcoin-cli walletpassphrase &lt;passphrase&gt; &lt;timeoutInSeconds&gt;
bitcoin-cli sendtoaddress &lt;bitcoinaddress&gt; `bitcoin-cli getbalance` "" "" true