title: Not able to delete directory from Azure Storage container by Databricks notebook
body: <p>I'm trying to delete empty directories from Azure storage container which mounted to my DBFS</p>
  <p>I'm able to list all directories which has no files.</p>
  <pre><code>%sh
  find /dbfs/mnt/test/logs/2021 -empty -type d
  </code></pre>
  <p>Result :</p>
  <pre><code>/dbfs/mnt/test/logs/2021/02/12
  /dbfs/mnt/test/logs/2021/02/15
  /dbfs/mnt/test/logs/2021/02/16
  </code></pre>
  <p>But when I try to delete them, it is failing with Resource temporary unavailable.</p>
  <pre><code>%sh
  find /dbfs/mnt/test/logs/ -type d -exec rmdir {} \; 
  </code></pre>
  <p>Result:</p>
  <pre><code>rmdir: failed to remove '/dbfs/mnt/test/logs/': Directory not empty
  rmdir: failed to remove '/dbfs/mnt/test/logs/2021': Directory not empty
  rmdir: failed to remove '/dbfs/mnt/test/logs/2021/02': Directory not empty
  rmdir: failed to remove '/dbfs/mnt/test/logs/2021/02/12': Resource temporarily unavailable
  </code></pre>
  <p>I'm able to successfully remove files older than certain days.. removing direcotry is not working. (Below command to remove files working</p>
  <pre><code>%sh
  find /dbfs/mnt/test/logs/ -name &quot;*.log&quot; -type f -mtime +5 -exec rm -f {} \; 
  </code></pre>