Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

delete with unlinksync node

const fs = require('fs')

const path = './file.txt'

try {
  fs.unlinkSync(path)
  //file removed
} catch(err) {
  console.error(err)
}
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #delete #unlinksync #node
ADD COMMENT
Topic
Name
1+1 =