sweepprivkey alternative - bitcoin core I guess they took off this function, so any alternative? 

what i'm looking to do is exactly like this

sweepprivkey privkey minconfirms [destinationtype destination] [fee] [amount changeaddress]
Nobody "took off" this function, it was only proposed, but was never actually added to Bitcoin Core.

Instead, you can use importprivkey and then send BTC to a new address:

https://en.bitcoin.it/wiki/Help:How_to_import_private_keys_in_Bitcoin_Core_0.7%2B

Note:


Why doc says importing private keys is so dangerous?
Why so many warnings about importing private keys?