title: Removing all properties from a object
body: <p>I have this Javascript object. </p>
  
  <pre><code>req.session
  </code></pre>
  
  <p>In my code I add properties to this object. These properties can be other objects, arrays, or just plain strings.</p>
  
  <pre><code>req.session.savedDoc = someObject; 
  req.session.errors = ['someThing', 'anotherThing', 'thirdThing'];
  req.session.message = 'someString'
  </code></pre>
  
  <p>If I later would like to erase all added properties of this object, what is the easiest/best way?</p>
  
  <p>There must be a better way than this? </p>
  
  <pre><code>// Delete all session values
  delete req.session.savedDoc;
  delete req.session.errors;
  delete req.session.message;
  </code></pre>