TECHNOLOGY FOCUS - CHEMICAL ENGINEERING - Preferred Process: During contacting hydrocarbon comprising organic halide with metal chloride, the contacting temperature is 50 degrees C or more and less than 205 degrees C, and liquid hourly space velocity is 0.5-20 hour-1, and the mass ratio of the hydrocarbon and metal chloride is 0.5-200, and contacting time is 0.15-36 hours. The hydrocarbon is fed directly to the halide removal vessel from a treatment that heats the hydrocarbon at contacting temperature. During catalytic process, 90-100 wt.% total halide in the hydrocarbon is removed, the contacting occurs in two or more beds, in which one bed is used for the contacting and another bed is re-charged with the metal chloride or operated in standby, and the hydrocarbon passes through a freshest bed. The metal chloride is produced from an adsorbent comprising a metal oxide.    TECHNOLOGY FOCUS - INORGANIC CHEMISTRY - Preferred Composition: The metal chloride comprises calcium chloride, magnesium chloride, iron chloride, chromium chloride, zinc chloride, and/or copper chloride.    TECHNOLOGY FOCUS - ORGANIC CHEMISTRY - Preferred Composition: Hydrocarbon and contacted hydrocarbon are saturated. The total content of halide in hydrocarbon is 75-2500 weight ppm. The process unit comprises an ionic liquid catalyst and alkyl halide. The alkyl halide comprises 2-6C alkyl halide. The organic halide is an organic chloride. The organic chloride comprises 4-16C organic chloride. The ionic liquid catalyst is chloroaluminate ionic liquid catalyst. The chloroaluminate ionic liquid catalyst is a quaternary ammonium chloroaluminate ionic liquid salt. The hydrocarbon is gasoline blending component, middle distillate, or base oil. The hydrocarbon comprises 20-100 weight ppm total halide, and the contacted hydrocarbon comprises 0-5 weight ppm total halide. Preferred Properties: The difference of research octane number (RON) of the gasoline blending component and contacted research octane number (RON) of the contacted hydrocarbon is 0-1.