docparse-upload-remove

Remove an a user from an existing upload document in the database

npm install docparse-upload-remove
6 downloads in the last week
24 downloads in the last month

Docparse Upload Remove

Remove an a user from an existing upload document in the database. The upload should be an instance of docparse-upload.

Build Status Dependency Status Dependency tracking by David

Usage

var inspect = require('eyespect').inspector();
var remove = require('docparse-upload-remove');
var data = {
  hash: 'foo hash',
  userID: 'fooUserID' // this should be an _id ObjectId of a docparse-user instance
}
remove(data, function(err, reply) {
  if(err) {
    inspect(err, 'error creating upload);
    return;
  }
  inspect(reply.toObject(), 'removed upload');
});

Installation

npm install docparse-upload-remove

npm loves you