Write an article based on this summary:

Turn off the water valves. Pull or drag the washing machine away from the wall. Unplug the washing machine. Get a bucket. Detach the hoses from the machine. Remove the hoses from the wall.Turn the ends counterclockwise until the hoses detach. Remove the drain hose from the drain.
Valves for the supply of hot and cold water are usually located behind the washing machine and in a washer box attached to the wall. Turn off the valves by turning them clockwise until they cannot be turned any further. You'll want to turn these off first thing. This will protect you from major spills if you should accidentally tear a hose in step 2. If working alone, grab one side and move it forward, then do the same with the other side. If you have help, try pulling on opposite sides simultaneously.  Pull the machine as far out as you can without putting stress on the hoses. Ideally, this will be far enough away from the wall that you can step behind the machine.  If your house is on the newer side, some new water boxes are above the washer so it's easier to reach the lines without moving the machine. Make sure the washing machine is not running, and pull the plug out of the outlet. This will disconnect the washing machine from its power supply. Place a water pan  or bucket behind the washing machine, under the water lines where it will catch water. Surround the bucket with several towels to catch any additional leaks or water that may spill out when the pipes are detached. If they are attached with clamps, turn the screws atop the clamps counterclockwise until the clamps are loose. Then, point the ends of the hoses toward your bucket to drain any water. Alternatively, you can place them in the drain, located in the washer box.  It's a good idea to double-check that your valves are still off before doing this. Some styles of faucet handles are easy to accidentally turn back on, and this could have occurred as you moved the machine or when you stepped behind it.  You may find it helpful to wait a few seconds after turning off the valves to try to remove the hoses, as this will allow the pressure in the hoses to abate, making them easier to remove.  Turning on a few other faucets in the house may help them drain more quickly. You may need to use adjustable pliers or a pipe wrench to loosen the hoses, especially if the machine hasn't been disconnected in a while.  Once you've removed them, drain any remaining water into the bucket. Depending on your plumbing setup, this might be a laundry sink, a floor drain, a wall-mounted drain, or a tall stand-pipe. Each of these requires a slightly different process of hose removal. Consult the instructions that came with your machine if it is not immediately obvious. Point the free end of this hose toward your bucket as well, to allow any water to flow out.