lib/mongodb/MongoDBCollection.js
function(id, options, context) {
    try {
      this.collection.deleteObject(id, options.driverOptions)
      return 1
    } catch (e) {
      if (e instanceof leafnode.errors.LeafnodeObjectSetOperationError) {
        return e.deletedCount
      }
      throw e
    }
  }
function(id, options, context) {
    try {
      this.collection.deleteObject(id, options.driverOptions)
      return 1
    } catch (e) {
      if (e instanceof leafnode.errors.LeafnodeObjectSetOperationError) {
        return e.deletedCount
      }
      throw e
    }
  }
***************************************************************************
@method removeObject
@description Remove a specific object from a collection
@param {String} id -- The ID of the object to remove
@param {Object} options -- The operation parameters (see:
{@link carbond.mongodb.MongoDBCollection.RemoveConfigClass})
@param {Object} context -- A free form object to pass data between hook and handler
methods
@returns {number|Object} -- An integer representing the number of objects removed (0 or 1) or the
the object removed
@throws {carbond.collections.errors.CollectionError}