Harmful wastes can build up in the body if the kidneys are not working. Dialysis is used to remove harmful wastes and excess fluid from the body. Peritoneal dialysis is one type of dialysis.