title: How to delete every other file in a directory from a shell command?
body: <p>I have extracted frames from a video in png format:</p>
  
  <pre><code>00000032.png
  00000033.png
  00000034.png
  00000035.png
  00000036.png
  00000037.png
  </code></pre>
  
  <p>and so on...</p>
  
  <p>I would like to delete every other frame from the dir using a shell command, how to do this?</p>
  
  <h2>EDIT</h2>
  
  <p>I think I wasn't clear in my question. I know I can delete each file manually like:</p>
  
  <pre><code>rm filename.png
  rm filename2.png
  </code></pre>
  
  <p>etc...</p>
  
  <p>I need to do all this in one command dynamically because there are thousands of images in the folder.</p>