@archistudent Here’s a routine to remove an entry from a variable table name. I think this is what you were showing above. The function “remove” does all the work, everything else are just examples to show how it works.
function setup()
-- example tables
circle123={88,54,67,32,16,78}
circle554={76,54,63,23,41,94}
square999={23,45,67,21,89,46}
-- remove 3rd entry from table circle123
-- print before
print(table.concat(circle123," "))
-- remove entry
remove("circle",123,3)
-- print after
print(table.concat(circle123," "))
print()
-- remove 2nd entry from table circle554
-- print before
print(table.concat(circle554," "))
-- remove entry
remove("circle",554,2)
-- print after
print(table.concat(circle554," "))
print()
-- remove 5th entry from table square999
-- print before
print(table.concat(square999," "))
-- remove entry
remove("square",999,5)
-- print after
print(table.concat(square999," "))
end
-- remove entry from variable table name
function remove(tab,ext,pos)
str=string.format("table.remove(%s%d,%d)",tab,ext,pos)
a=loadstring(str)
a()
end