Usually majority of dental pain goes out with small amount of cleaning. But general or gross cleaning never removed bacteria in Toto. And hence dental pain goes on immediate basis but cavity keeps growing inside your tooth and it will hit you again after some months.
Thorough cleaning is very important and hence Canal preparations and irrigation of root canals for sufficient times is very imperative.