title: Can fs.unlink() delete a empty or non empty folder?
body: <p>I am new to Node.js.</p>
  
  <pre><code>const fs = require('fs');
  
  fs.unlink('/tmp/hello', (err) =&gt; {
    if (err) throw err;
    console.log('successfully deleted /tmp/hello');
  });
  </code></pre>
  
  <p>This is some code that I copied from a node.js document file system intro example.</p>
  
  <p>But, I am confused. Can <code>unlink()</code> delete a folder or not?</p>
  
  <p>I have tried but it doesn't work.</p>
  
  <p>So, can <code>unlink()</code> delete a folder or not?</p>