How do I completely remove a table entry?

I was accessing the wrong level of the table and therefore only nilling the entry not the actual table, this has been resolved through a script change and is now functional.

To remove a table entry set it to nil. The issue you are having (I assume) is you’re attempting to get the length of a dictionary which can’t be done with # operator. You can, however, use the pairs() function to iterate through the dictionary and ‘count’ up (using a variable) each iteration.

I’m getting the length of a table inside the dictionary. All of that is functional, everything works and has been tested well, I should have placed the function that’s meant to remove it inside the original post. Check the original, it’s been updated to include something that was rather important and I’m surprised I didn’t consider adding.

1 Like