The invention provides a one-machine bag type dust collector. The one-machine bag type dust collector comprises a rack, a filtering box, an ash removing mechanism, a dust collection drawer, an ash hopper, an air inlet and an air outlet, wherein the filtering box is fixedly installed at the upper end of the rack, the ash hopper is connected to the lower end of the filtering box, and the dust collection drawer is arranged on the lower portion of the ash hopper; a glass cotton layer is arranged in the middle of the filtering box and divides the filtering box into a purified air chamber and a filtering chamber, the air inlet is formed in one side of the filtering chamber, and a plurality of filtering bags are evenly arranged in the filtering chamber and matched with the ash removing mechanism on one side. According to the dust collector, due to the effect of the ash removing mechanism, the ash removing effect is effectively improved, dust suction stability, connecting performance and dust removing efficiency are guaranteed, the service life of the filtering bags is prolonged, meanwhile, due to cooperation of the glass cotton layer and a sound absorbing layer, noise in the work process is lowered, secondary pollution is avoided, the dust removing effect is further guaranteed due to cooperation of a sub-high-efficiency filter, and the service life is prolonged.