lib/middleware/forms.js
function undeploy(req, res, next) {
  var removeParams = {
    _id: req.params.id
  };

  logger.debug("Middleware: undeploy form: ", {params: removeParams});

  forms.deleteForm(_.extend(req.connectionOptions, removeParams), formsResultHandlers(constants.resultTypes.forms, req, next));
}
function undeploy(req, res, next) {
  var removeParams = {
    _id: req.params.id
  };

  logger.debug("Middleware: undeploy form: ", {params: removeParams});

  forms.deleteForm(_.extend(req.connectionOptions, removeParams), formsResultHandlers(constants.resultTypes.forms, req, next));
}
function undeploy ( req , res , next ) { var removeParams = { _id : req . params . id } ; logger . debug ( "Middleware: undeploy form: " , { params : removeParams } ) ; forms . deleteForm ( _ . extend ( req . connectionOptions , removeParams ) , formsResultHandlers ( constants . resultTypes . forms , req , next ) ) ; }
Undeploy An Existing Form. Does not remove any submission data.
@param req
@param res
@param next
Undeploy An Existing Form . Does not remove any submission data .