What fridge, and is it RV or residential type? Or is this a standalone icemaker?
Fpr an RV fridge, you can disconnect the water line from the valve (behind the fridge, by the cooling unit) and blow air thru that far. That also drains the solenoid valve itself.
The part between the solenoid valve and the ice maker itself is a bit trickier. I've had success just disconnecting the line and letting it drip drain, but sometimes it doesn't cooperate. Got a watch that closely. The safest way is to keep pressure on and cycle the solenoid, either by waiting for an icemaker cycle or jumping it to force it open. On an RV fridge, that is a 120v solenoid.
If residential fridge or standalone ice maker, it's more complicated.