vicinityManager/server/controllers/userAccounts/configuration.js
/*
Removes organisation and everything under:
Users, nodes, items
*/
Removes organisation and everything under:
Users, nodes, items
Removes organisation and everything under : Users nodes items
function remove(req, res, next) {
  var cid = mongoose.Types.ObjectId(req.params.id);
  var mail = req.body.decoded_token.sub;
  sOrgConfiguration.remove(cid, mail, function(err, data){
    res.json({"error": err, "message": data});
  });
}
function remove ( req , res , next ) { var cid = mongoose . Types . ObjectId ( req . params . id ) ; var mail = req . body . decoded_token . sub ; sOrgConfiguration . remove ( cid , mail , function ( err , data ) { res . json ( { "error" : err , "message" : data } ) ; } ) ; }
Removes organisation and everything under:
Users, nodes, items
Removes organisation and everything under : Users nodes items