The flexible hose screws straight into the caliper so if you are taking it off I imagine you will be disconnecting at the flexible to hard line joint where you can spin the nut? I've used a simple plastic tyre dust cap to plug the ends before but it all depends on the size of the flare on the pipe. Plastic bag and elastic band over the reservoir helps reduce fluid loss.