Tmingyur, jhana is not to temporarily get rid of the afflictions, you need to rid at least temporarily get rid of the afflictions to enter jhana. People with afflictions cannot enter jhana.
This is not entirely correct. One enters the Dhyanas to remove afflictions. As one first begins to enter the first dhyana, he/she will start to slowly remove 81 view delusions and as one progresses further to the fourth dhyana, that person will start to remove more coarse afflictions (klesa).
These innate defilements are categorized in sequence with the fundamental division of existence into the realm of desire (kamadhatu), the first, second, third, and fourth absorptions of the form realms (rupadhatu), and the realms of infinite space (akasanantyayatana), infinite consciousness (vijnananantyayatana), nothingness (akimcanyayatana), and peak of existence (bhavagra) of the formless realms (arupyadhatu). In each of these nine realms there are three fundamental categories of defilements, subtle (mrdu), medium(madhya), and coarse (abhimatra). Each one of these fundamental categories is in turn subdivided into subtle, medium, and coarse, yielding a paradigm of nine categories: subtle-subtle, subtle-medium, subtle-coarse, medium-subtle, medium-medium, medium-coarse, coarse-subtle, coarse-medium, coarse-coarse. Therefore, with nine categories of defilements in each of the nine realms of existence there is a total of eighty-one defilements to be removed by the super-mundane path of cultivation in the dhyanas.
- Stairway to Nirvana, a study of the twenty samghas based on the works of Tsong Kha Pa