UNPKG

node-red-contrib-httppostcache

Version:

If posting data is failed, data is stored in file after posting process.

14 lines (12 loc) 222 B
module.exports = cacheDelete; const fs = require("fs"); function cacheDelete(params,callback) { fs.unlink(params.file,(err) => { if(err) { console.log(err); callback(err); } else { callback(null); } }) }