How to sweep a Bitcoin Core wallet? I have created an account in a bitcoind wallet which has got some 1.055btc which has to be wiped out to 0.00BTC to another account.  so the actual BTC has to be sent is 1.055 - transaction fee. 

Is there any calculation for bitcoin to find transaction fee or any jsonrpc to find estimation fee like ethereum (balance - (gasprice*gaslimit)).
With recent versions of bitcoind, you can use sendtoaddress with the optional subtractfeefromamount argument.  

sendtoaddress 123abc... 1.055 "" "" true


Creates a transaction with 1.055 BTC of inputs.  The destination address will receive a little less than 1.055 BTC, after an appropriate fee is subtracted.