lua array keys code example Example: lua empty table for k,v in pairs(table) do table.remove(table, k) end