Remove blip after closing hours

Hello everyone, i am modifying a script but il know how to add blips and remove blips (with RemoveBlip(blip)) but i don’t know how to do it with ipairs. someone can help me ? thanks !

local times = 0

Citizen.CreateThread(function ()
	while true do
		Citizen.Wait(0)
		heure = tonumber(GetClockHours())
		if Config.Hours then
			if heure > Config.openHours and heure < Config.closeHours then	
				if Config.Blip then
					if times == 0 then
						for k,v in ipairs(Config.Zones)do
							local blipillegal = AddBlipForCoord(v.x, v.y, v.z)
							SetBlipSprite (blipillegal, 133)
							SetBlipDisplay(blipillegal, 4)
							SetBlipScale  (blipillegal, 1.0)
							SetBlipColour (blipillegal, 5)
							SetBlipAsShortRange(blipillegal, true)

							BeginTextCommandSetBlipName('STRING')
							AddTextComponentString(_U('illegalblip'))
							EndTextCommandSetBlipName(blipillegal)
						end
						times = 1
					end
				end
			else
				if times == 1 then
					for k,v in ipairs(Config.Zones)do
							local blipillegal = AddBlipForCoord(v.x, v.y, v.z)

							RemoveBlip(blipillegal)							
						end
					times = 0
				end
			end
		end
	end
end)