let fs = require('fs');
fs.unlink('/path/to/file.txt', function(err) {
if (err) throw err;
console.log('file deleted');
});
let fs = require('fs');
fs.unlinkSync('/path/to/file.txt');
console.log('file deleted');
let fs = require('fs');
fs.unlink('/path/to/file.txt', function(err) {
if (err) throw err;
console.log('file deleted');
});
let fs = require('fs');
fs.unlinkSync('/path/to/file.txt');
console.log('file deleted');