it will start draining out the hard line when you R&R the rubber hose.

install upper end of hose and let it gravity bleed a couple mins, then connect it to caliper with new copper crush washers (which should be with a new line)

a helper then does fast pump up & hold of the pedal while you and crack the bleeder on caliper to remove the last little bit of air out of the caliper.