Harmful wastes can build up in the body if the kidneys are not working. Dialysis removes harmful wastes and extra fluid from the blood. Hemodialysis is one type of dialysis. Peritoneal dialysis is another type.