title: How to delete a non-empty directory using the Dir class?
body: <pre><code>Dir.delete("/usr/local/var/lib/trisul/CONTEXT0/meters/oper/SLICE.9stMxh")  
  </code></pre>
  
  <p>causes this error:  </p>
  
  <blockquote>
    <p><em>Directory not empty - <code>/usr/local/var/lib/trisul/CONTEXT0/meters/oper/SLICE.9stMxh</code></em></p>
  </blockquote>
  
  <p>How to delete a directory even when it still contains files?</p>