title: How to delete certain item from array in localstorage?
body: <p>I've been working on a tool to help people keep track of their cars in GTA, but I can't figure out how to remove them.</p>
  
  <p>I've tried multiple things, but can't get it to work.</p>
  
  <p>Here's my codepen <a href="https://codepen.io/Tristangre97/pen/dyoyOKw?editors=1010" rel="nofollow noreferrer">https://codepen.io/Tristangre97/pen/dyoyOKw?editors=1010</a></p>
  
  <pre><code>function deleteItem(index) {
    var existingEntries = JSON.parse(localStorage.getItem("allCars"));
    existingEntries.splice(0, index); // delete item at index
  }
  </code></pre>