writing data to tabel form for loop lua code example Example: lua empty table for k,v in pairs(table) do table.remove(table, k) end