docparse-upload-remove
v1.1.1
Published
Remove an a user from an existing upload document in the database
Downloads
6
Readme
Docparse Upload Remove
Remove an a user from an existing upload document in the database
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