<?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: Unable to delete a DBFS folder in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/unable-to-delete-a-dbfs-folder/m-p/17729#M11692</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the result of of the "ls" command : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;path                          name              size          modificationTime
dbfs:/mnt/${env]/      ${env]/		0		1654780637000
dbfs:/mnt/Temp/       Temp/		0		1643299456000
dbfs:/mnt/bronze/     bronze/		0		1655217261000
dbfs:/mnt/dev/          dev/		        0		1642150158000
dbfs:/mnt/extprd/      extprd/		0		0
dbfs:/mnt/gold/         gold/		0		1655197511000
dbfs:/mnt/prod/         prod/		0		1649774080000
dbfs:/mnt/qa/            qa/			0		1643122331000
dbfs:/mnt/silver/        silver/		0		1654676963000
dbfs:/mnt/uat/            uat/		0		1642150009000&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've used this command to create the folder : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE OR REPLACE TABLE ${env}XXXXX.ZZZZ (
  .....
)
USING DELTA
OPTIONS (PATH '/mnt/${env]/gold/XXXXX/ZZZZ/')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;As you can see, I've written "${env]" instead of "${env}'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 08:26:57 GMT</pubDate>
    <dc:creator>wyzer</dc:creator>
    <dc:date>2022-06-16T08:26:57Z</dc:date>
    <item>
      <title>Unable to delete a DBFS folder</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-delete-a-dbfs-folder/m-p/17727#M11690</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I've created by error a DBFS folder named : ${env]&lt;/P&gt;&lt;P&gt;But when I run this command :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dbutils.fs.rm("/mnt/${env]")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It returns me this error : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;java.net.URISyntaxException: Illegal character in path at index 12: /mnt/$%7Benv]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How can I do please ?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 14:28:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-delete-a-dbfs-folder/m-p/17727#M11690</guid>
      <dc:creator>wyzer</dc:creator>
      <dc:date>2022-06-14T14:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete a DBFS folder</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-delete-a-dbfs-folder/m-p/17728#M11691</link>
      <description>&lt;P&gt;hi @Salah K.​&amp;nbsp;what command you used to create the folder name $[env] ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have used dbutils, it would have failed to create a folder with this name. You would have got the error "Illegal character in path".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do `%fs ls /mnt` and check if the created folder exists.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 06:13:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-delete-a-dbfs-folder/m-p/17728#M11691</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2022-06-16T06:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete a DBFS folder</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-delete-a-dbfs-folder/m-p/17729#M11692</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the result of of the "ls" command : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;path                          name              size          modificationTime
dbfs:/mnt/${env]/      ${env]/		0		1654780637000
dbfs:/mnt/Temp/       Temp/		0		1643299456000
dbfs:/mnt/bronze/     bronze/		0		1655217261000
dbfs:/mnt/dev/          dev/		        0		1642150158000
dbfs:/mnt/extprd/      extprd/		0		0
dbfs:/mnt/gold/         gold/		0		1655197511000
dbfs:/mnt/prod/         prod/		0		1649774080000
dbfs:/mnt/qa/            qa/			0		1643122331000
dbfs:/mnt/silver/        silver/		0		1654676963000
dbfs:/mnt/uat/            uat/		0		1642150009000&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've used this command to create the folder : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE OR REPLACE TABLE ${env}XXXXX.ZZZZ (
  .....
)
USING DELTA
OPTIONS (PATH '/mnt/${env]/gold/XXXXX/ZZZZ/')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;As you can see, I've written "${env]" instead of "${env}'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 08:26:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-delete-a-dbfs-folder/m-p/17729#M11692</guid>
      <dc:creator>wyzer</dc:creator>
      <dc:date>2022-06-16T08:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete a DBFS folder</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-delete-a-dbfs-folder/m-p/17730#M11693</link>
      <description>&lt;P&gt;Hello @Salah K.​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%sh rm -r /dbfs/mnt/$\{env\]&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 10:31:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-delete-a-dbfs-folder/m-p/17730#M11693</guid>
      <dc:creator>User16764241763</dc:creator>
      <dc:date>2022-06-16T10:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete a DBFS folder</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-delete-a-dbfs-folder/m-p/17731#M11694</link>
      <description>&lt;P&gt;Thank you it works !!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 11:34:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-delete-a-dbfs-folder/m-p/17731#M11694</guid>
      <dc:creator>wyzer</dc:creator>
      <dc:date>2022-06-16T11:34:52Z</dc:date>
    </item>
  </channel>
</rss>

