code: 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));
  }
docs: Undeploy An Existing Form. Does not remove any submission data.
  @param req
  @param res
  @param next