title: How to delete X number of files in a directory
body: <p>To get X number of files in a directory, I can do:</p>
  
  <pre><code>$ ls -U | head -40000
  </code></pre>
  
  <p>How would I then delete these 40,000 files? For example, something like:</p>
  
  <pre><code>$ "rm -rf" (ls -U | head -40000)
  </code></pre>