core/api/index.js
function (req, res, dataPath) {
    var body = req.body;
    var reqID = body.id || req.query.id;

    htmlTree.deleteFromDataFile(dataPath, reqID, function(err, finalData){
        if (err || !finalData) {
            res.status(config.statusCodes.error).json({
                message: err
            });
        } else {
            res.status(config.statusCodes.OK).json(finalData);
        }
    });
}
function (req, res, dataPath) {
    var body = req.body;
    var reqID = body.id || req.query.id;

    htmlTree.deleteFromDataFile(dataPath, reqID, function(err, finalData){
        if (err || !finalData) {
            res.status(config.statusCodes.error).json({
                message: err
            });
        } else {
            res.status(config.statusCodes.OK).json(finalData);
        }
    });
}
function ( req , res , dataPath ) { var body = req . body ; var reqID = body . id || req . query . id ; htmlTree . deleteFromDataFile ( dataPath , reqID , function ( err , finalData ) { if ( err || ! finalData ) { res . status ( config . statusCodes . error ) . json ( { message : err } ) ; } else { res . status ( config . statusCodes . OK ) . json ( finalData ) ; } } ) ; }
postHTML DELETE api processor

@param {Object} req - express request
@param {Object} req.body.path - data path for deletion

@param {Object} res - express response
@param {String} dataPath - custom data storage path

Writes result to res object
postHTML DELETE api processor