1 Disconnect the dishwasher water supply line and the drain line. 2  Drain the hoses into a bucket or pot. 3  Remove the bottom panel of the dishwasher, and disconnect the wires from the electrical box. 4  Remove the screws attaching the dishwasher to the cabinet or countertop, and pull the dishwasher out of the opening.