docparse-upload-remove

1.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i docparse-upload-remove

Weekly Downloads

2

Version

1.1.1

License

BSD

Last publish

Collaborators

  • clewfirst