title: How to delete files from the HDFS?
body: <p>I just downloaded Hortonworks sandbox VM, inside it there are Hadoop with the version 2.7.1. I adding some files by using the</p>
  
  <pre><code>hadoop fs -put /hw1/* /hw1
  </code></pre>
  
  <p>...command. After it I am deleting the added files, by the</p>
  
  <pre><code>hadoop fs -rm /hw1/*
  </code></pre>
  
  <p>...command, and after it cleaning the recycle bin, by the</p>
  
  <pre><code>hadoop fs -expunge
  </code></pre>
  
  <p>...command. But the DFS Remaining space not changed after recyle bin cleaned. Even I can see that the data was truly deleted from the /hw1/ and the recyle bin. I have the <code>fs.trash.interval parameter = 1</code>.</p>
  
  <p>Actually I can find all my data split in chunks in the <code>/hadoop/hdfs/data/current/BP-2048114545-10.0.2.15-1445949559569/current/finalized/subdir0/subdir2</code> folder, and this is really surprises me, because I expect them to be deleted.</p>
  
  <p>So my question how to delete the data the way that they really will be deleted? After few adding and deletion I got exhausted free space.</p>