You need to make sure you have the cut off valves. I moved into a house and the previous owner had put the tankless in without there.
Use a sump pump in the bucket to create a circular flow of water from the bucket, through the heater, and back into the bucket. Run that for 45 minutes.
I use one of the descale flush products for this on Amazon. It's like $20. In use a bucket, hoses, and a pump as described to flush. Pretty easy. My water is not softened and has minerals so it is part of my yearly home maintenance plan.
Only difference is I use a drill pump and whoever installed the valves did it so that the drain side is turned sideways so I have to use a flexible hose and clamp