title: localStorage - clear() or removeItem()?
body: <p>Should I use <code>clear()</code> to obliterate everything in <code>localStorage</code>, or should I just manually <code>removeItem()</code> the ones I've set on that particular site (which is easy enough to keep track of)?</p>
  
  <p>I ask because I don't want to end up wiping out users' <code>localStorage</code> if they have other values set.  I'm testing this in localhost and noticed that by using <code>clear()</code>, everything I'd set previously in other projects was wiped out.</p>
  
  <p>EDIT: I should have mentioned that I know localStorage is domain-locked.  I'm running a site that follows this structure:</p>
  
  <pre><code>public-html
  (localStorage)
  --project1
  ----files
  --project2
  ----files
  --project3
  ----files
  </code></pre>
  
  <p>Where each file uses it's own separate localStorage variables.  If I <code>localstorage.clear()</code> inside project2, project1 and project3's settings will be lost as well.</p>