lua clear table

-- Sample table
local myTable = {a = 1, b = 2, c = 3}

-- Clear the table
for key in pairs(myTable) do
    myTable[key] = nil
end