Hatha Yoga Pradipika · by Svatmarama
Chapter 2 · Pranayama and Cleansing
प्राणायामविधिः
चतुरंगुलविस्तारं हस्तपंचदशायतम् ॥गुरूपदिष्टमार्गेण सिक्तं वस्त्रं शनैर्ग्रसेत् ॥ २४ ॥
Classical description, not an instruction. Learn only under a qualified teacher.
Also in Gheranda Samhita 1.40
The yogi slowly swallows a damp cloth, 4 fingers wide and 15 hands long, in the way the guru taught.
Simple meaning: The text describes a cloth cleansing called dhauti done as the guru teaches.
पुनः प्रत्याहरेच्चैतदुदितं धौतिकर्म तत् ॥
The text describes the cloth cleansing called dhauti and says it removes diseases.
धौतिकर्मप्रभावेन प्रयांत्येव न संशयः ॥
The text says dhauti removes these diseases, and starts describing a water cleansing.
आधाराकुंचनं कुर्यात्क्षालनं बस्तिकर्म तत् ॥
The text describes a bowel cleansing called basti and says it removes many diseases.