I want to remove something from a table using strings instead of numbers

So I want to remove something from a table using

table.remove(table, number)

but instead it is

table.remove(table, string)

Since the things in my table are like
table[thing.Name] = {}
where thing.Name is a string of course.

I can’t do this however. Is there another way I can do this?

Just do table[thing.Name] = nil

2 Likes

Don’t use table.remove. That is not what it’s for.

table[thing.Name] = nil

will suffice.

2 Likes