Hatha Yoga Pradipika · by Svatmarama
Chapter 2 · Pranayama and Cleansing
प्राणायामविधिः
कपालशोधनं वातदोषघ्नं कृमिदोषहृत् ॥पुनः पुनरिदं कार्यं सूर्यभेदनमुत्तमम् ॥ ५० ॥
The text says it cleans the skull and destroys faults of vata (wind humour) and of worms. It is to be done again and again. Suryabhedana (sun piercing) is the best.
Simple meaning: Suryabhedana is said to clean the skull, ease wind and worm faults, and is the best.
Classical view, not medical advice.
मुखं संयम्य नाडीभ्यामाकृष्य पवनं शनैः ॥
Close the mouth and draw air in with a sound from throat to heart.
पूर्ववत्कुंभयेत्प्राणं रेचयेदिडया ततः ॥
Hold as before and breathe out on the left; it is said to clear throat phlegm.
नाडीजलोदराधातुगतदोषविनाशनम् ॥
Ujjayi is said to remove many faults and can be done walking or standing.