title: Unable to delete HDFS Missing/Corrupt files
body: <p>I am unable to delete corrupt files present in my HDFS.</p>
  
  <p>when i launch : </p>
  
  <pre><code>hdfs fsck -list-corruptfileblocks
  </code></pre>
  
  <p>i got some blocks corrupted : <code>The filesystem under path '/' has 10 CORRUPT files</code></p>
  
  <pre><code>hdfs dfs -rm /path/to/filename.fileextension
  
  rm: `/path/to/filename.fileextension': No such file or directory
  </code></pre>
  
  <p>I also tried </p>
  
  <p><code>hdfs fsck / -delete</code>   </p>
  
  <pre><code>  Under-replicated blocks:       0 (0.0 %)
       Mis-replicated blocks:         0 (0.0 %)
       Default replication factor:    3     
       Corrupt blocks:                0
       Missing replicas:              0 (0.0 %)   
      The filesystem under path '/' is HEALTHY 
  </code></pre>
  
  <p>I've also restart both of namenodes and the bug still occurs</p>
  
  <p>Can anyone please help me in this case ? 
  Here is a similar <a href="https://stackoverflow.com/questions/47278453/unable-to-delete-hdfs-corrupt-files?noredirect=1#comment90155916_51595087">case</a> : </p>
  
  <p>Thanks.  </p>