(A) Remove the water line
Once that is done, you need to find the water inlet beneath the dishwasher machine and unscrew the nut whilst holding the inlet securely in position. Once again a towel, bucket and basin will come in handy here, since as you remove the water line, some of the water that remains in the pipes may leak out.
(B) Disconnect the drain line
For the final few stages, you need to detach/disconnect the drain line. This tends to be held in place using a clamp.
Now that all of the fiddly work is done, it is time to get rid of any water still in the dishwasher, ready to dispose of it.