how to empty the all keys in dictory in javascirpt code example Example: js delete object in dict delete myArray[id_to_remove];