<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I delete folders from my DBFS? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-can-i-delete-folders-from-my-dbfs/m-p/29131#M20888</link>
    <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Max answer focuses on the CLI. Instead, using the Community Edition Platform, proceed as follows:&lt;/P&gt;
&lt;P&gt;# You must first delete all files in your folder.&lt;/P&gt;
&lt;P&gt;&lt;B&gt;1. import org.apache.hadoop.fs.{Path, FileSystem}&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&amp;nbsp;&lt;/B&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;
&lt;P&gt;&lt;B&gt;2. dbutils.fs.rm("/FileStore/tables/file.csv")&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;You can refresh DBFS each time you proceed to action above for checking is the file was deleted.&lt;/P&gt;
&lt;P&gt;When all files are deleted then you can delete the folder using the same command (2.).&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jul 2020 13:13:08 GMT</pubDate>
    <dc:creator>IA</dc:creator>
    <dc:date>2020-07-02T13:13:08Z</dc:date>
    <item>
      <title>How can I delete folders from my DBFS?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-delete-folders-from-my-dbfs/m-p/29129#M20886</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I want to delete my created folder from DBFS. But how? How can I download files from there?&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 07:49:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-delete-folders-from-my-dbfs/m-p/29129#M20886</guid>
      <dc:creator>Mir_SakhawatHos</dc:creator>
      <dc:date>2017-08-30T07:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete folders from my DBFS?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-delete-folders-from-my-dbfs/m-p/29130#M20887</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Please, take a look at the documentation:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/user-guide/dbfs-databricks-file-system.html#dbfs-command-line-interface" target="test_blank"&gt;https://docs.databricks.com/user-guide/dbfs-databricks-file-system.html#dbfs-command-line-interface&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;To delete created folder in notebooks:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;%fs rm -r foobar
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To download files, please, use &lt;B&gt;dbfs&lt;/B&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;# Get dbfs:/apple.txt and save to local file ./apple.txt
dbfs cp -r dbfs:/src ./dst&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The tool could be installed via:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;pip install --upgrade databricks-cli&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Maxim Gekk&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 08:42:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-delete-folders-from-my-dbfs/m-p/29130#M20887</guid>
      <dc:creator>__max</dc:creator>
      <dc:date>2017-08-30T08:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete folders from my DBFS?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-delete-folders-from-my-dbfs/m-p/29131#M20888</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Max answer focuses on the CLI. Instead, using the Community Edition Platform, proceed as follows:&lt;/P&gt;
&lt;P&gt;# You must first delete all files in your folder.&lt;/P&gt;
&lt;P&gt;&lt;B&gt;1. import org.apache.hadoop.fs.{Path, FileSystem}&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&amp;nbsp;&lt;/B&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;
&lt;P&gt;&lt;B&gt;2. dbutils.fs.rm("/FileStore/tables/file.csv")&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;You can refresh DBFS each time you proceed to action above for checking is the file was deleted.&lt;/P&gt;
&lt;P&gt;When all files are deleted then you can delete the folder using the same command (2.).&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 13:13:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-delete-folders-from-my-dbfs/m-p/29131#M20888</guid>
      <dc:creator>IA</dc:creator>
      <dc:date>2020-07-02T13:13:08Z</dc:date>
    </item>
  </channel>
</rss>

