title: How to delete the data older than x days in HDFS
body: <p>How to delete a data older than x days.In <code>linux</code> its pretty simple,however in <code>hdfs</code> finding difficulty.</p>
  
  <p>Moreover even <code>hdfs dfs -ls /&lt;path&gt;</code> is giving an unsorted ordered data.</p>