Normal to use table.remove
you would have to use use the number placement of that item, is there a way to do it with its name? Like this:
names = {"Hi","Bye"} table.remove(names, "Bye") --This doesn't work of course
table.remove is a function with two specific arguments: the table, and it's numeric index
(implying it must be an array
).
I've given a very detailed explanation on this, where you can find here: https://scriptinghelpers.org/questions/22565/tableinsert-and-tableremove#26210