title: Delete files older than 10days on HDFS
body: <p>Is there a way to delete files older than 10 days on HDFS?</p>
  
  <p>In Linux I would use:</p>
  
  <pre><code>find /path/to/directory/ -type f -mtime +10 -name '*.txt' -execdir rm -- {} \;
  </code></pre>
  
  <p>Is there a way to do this on HDFS? (Deletion to be done based on file creation date)</p>