docs: function destroyDocument(params) {
    var collection = collections[params.collection]
  
    if (collection === undefined) {
      return false
    }
  
    var doc = collection[params.id]
  
    delete collection[params.id]
  
    eventEmitter.emit('documentDestroyed', params.collection, doc)
  
    return true
  }