I’m not sure if this is answering your question but:
There are two ways of removing something, either through
table.remove
or making the value nil inside the table
MyDataTable[2] = nil
The difference between the both is that table.remove completely removes it but the indexing method just removes the value.
This forum post is also useful to understand the comparisons