how to delete all records from object in es6 code example Example: js delete object in dict delete myArray[id_to_remove];