const users = ['item1', 'item2', 'item3']; // delete 'item2' delete users['item2'] console.log(users); // ['item1', 'item3'] // another way console.log(users.splice(1, 1)); // ['item1', 'item3']