An accessory for canister type vacuum cleaner, comprising: - a suction tube comprising a first end portion (7.1) to which a floor cleaning element is intended to be fastened, and a second end portion (7.2) opposite the first end portion (7.1) and intended to be fluidly connected to a suction tip provided on a vacuum cleaner casing, - a gripping handle comprising a main handle part which is elongated and which is mechanically connected to the suction tube, the gripping handle being hingedly mounted relative to the suction tube about a pivot axis and between a first handle position and a second handle position, and - a locking mechanism configured to lock the gripping handle in the first handle position, the locking mechanism including a lock movably mounted on one of the gripping handle and of the suction tube between a locking position in which the lock is configured to cooperate with a locking element provided on the other of the gripping handle and of the suction tube so as to lock the gripping handle in the first handle position, and a release position in which the lock is configured to release the locking element so as to allow a pivoting of the gripping handle between the first and second handle positions, the locking mechanism further including an unlocking member which is configured to be actuated by a user and which is mounted on the gripping handle or the suction tube between a first position and a second position, the locking mechanism being configured such that a movement of the unlocking member from the first position to the second position causes a movement of the lock from the locking position to the release position and such that a movement of the unlocking member from the second position to the first position causes a movement of the lock from the release position to the locking position, characterized in that the lock includes two lateral locking members disposed on either side of the unlocking member, the lateral locking members being slidably mounted in a movement direction. - a suction tube comprising a first end portion (7.1) to which a floor cleaning element is intended to be fastened, and a second end portion (7.2) opposite the first end portion (7.1) and intended to be fluidly connected to a suction tip provided on a vacuum cleaner casing, - a gripping handle comprising a main handle part which is elongated and which is mechanically connected to the suction tube, the gripping handle being hingedly mounted relative to the suction tube about a pivot axis and between a first handle position and a second handle position, and - a locking mechanism configured to lock the gripping handle in the first handle position, the locking mechanism including a lock movably mounted on one of the gripping handle and of the suction tube between a locking position in which the lock is configured to cooperate with a locking element provided on the other of the gripping handle and of the suction tube so as to lock the gripping handle in the first handle position, and a release position in which the lock is configured to release the locking element so as to allow a pivoting of the gripping handle between the first and second handle positions, the locking mechanism further including an unlocking member which is configured to be actuated by a user and which is mounted on the gripping handle or the suction tube between a first position and a second position, the locking mechanism being configured such that a movement of the unlocking member from the first position to the second position causes a movement of the lock from the locking position to the release position and such that a movement of the unlocking member from the second position to the first position causes a movement of the lock from the release position to the locking position,