<p>I received an interesting issue about JsonDB not deleting correctly the index in an Array&colon;<br &sol;>&NewLine;&lbrack;github-issue username&equals;&&num;8221&semi;belphemur&&num;8221&semi; repository&equals;&&num;8221&semi;node-json-db&&num;8221&semi; number&equals;&&num;8221&semi;10&&num;8243&semi;&rsqb;&NewLine;<p>I thought using the <em>delete<&sol;em> keyword on an index in an array was deleting it &lpar;rendering its value undefined&rpar;&period; In fact&comma; it only set the index value to <em>NULL<&sol;em>&period;<&sol;p>&NewLine;<h1>Don&&num;8217&semi;t do<&sol;h1>&NewLine;<pre class&equals;"brush&colon; jscript&semi; title&colon; &semi; notranslate" title&equals;""> &NewLine; &NewLine;var test &equals; &lbrace;array&colon;&&num;x5B&semi;1&comma;2&comma;3&rsqb;&rcub;&semi; &NewLine; &NewLine;delete test&period;array&&num;x5B&semi;1&rsqb;&semi; &NewLine; &NewLine;console&period;log&lpar;test&period;array&rpar;&semi; &sol;&sol;&&num;x5B&semi;1&comma;  &comma; 3&rsqb; &NewLine; &NewLine;<&sol;pre>&NewLine;<h1>Do<&sol;h1>&NewLine;<pre class&equals;"brush&colon; jscript&semi; title&colon; &semi; notranslate" title&equals;""> &NewLine; &NewLine;var test &equals; &lbrace;array&colon;&&num;x5B&semi;1&comma;2&comma;3&rsqb;&rcub;&semi; &NewLine; &NewLine;test&period;array&period;splice&lpar;1&comma;1&rpar;&semi; &sol;&sol;Remove from index 1&comma; 1 item&period; &NewLine; &NewLine;console&period;log&lpar;test&period;array&rpar;&semi; &sol;&sol;&&num;x5B&semi;1&comma; 3&rsqb; &NewLine;<&sol;pre>&NewLine;<h1>Conclusion<&sol;h1>&NewLine;<p>If you want to remove also the index from the array&comma; use the <em>splice<&sol;em>&period; If you want to keep your index table intact&comma; but remove only the value&comma; use <em>delete<&sol;em>&period;<&sol;p>&NewLine;