A method for removing harmful substances in a vent gas containing a halogen or halogen compound gas remaining in the pipeline of a cylinder cabinet, which comprises contacting the vent gas with a treating agent comprising an alkaline earth metal compound, an alkali metal compound, zeolite, and a carbonaceous material.