A removable dust collector for use in a dust compartment of a vacuum cleaner is provided and includes a holder that maintains the dust collector in an operating position, and a locking member that is placed in a locking position when the dust collector is removed. A cover of the dust compartment is prevented from closing and is placed in a release position when the dust collector is in an operating position. The locking member is maintained in its release position either by means of a filter bag inserted into a carrier or by an actuating member associated with the dust collector.