A vacuum cleaner includes a head assembly including a housing and a fan arranged in the housing. A dust storage barrel and a filter assembly are arranged below the head assembly, the dust storage barrel being detachably connected to the head assembly. A switch is provided for controlling the fan located in the housing. A side wall of the housing has a cavity defined by an opening. A switch trigger is provided for turning on or turning off the switch and is located in the cavity so that no part of the switch trigger extends outwardly past an outer contour of the housing.