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: