title: nodejs - mongodb - how to remove a record
body: <p>This is the data</p>
  
  <pre><code>{
      "username": "runrun",
      "channel": "all",
      "expire": NumberLong("1308183908743"),
      "_id": ObjectId("4df93f54e07324af47000001")
  }
  </code></pre>
  
  <p>This is the code I used to use to remove a record</p>
  
  <pre><code>db.collection('seesion',function(err, collection){
      collection.remove({
          "expire": {"$lte": Date.now()}
      },function(err, removed){
          console.log(removed);
      });
  });
  </code></pre>
  
  <p>I want to delete the session which has been expired. Problem is, the code doesn't work, maybe there is something to do with numberLong ? </p>