<?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 a file in DBFS with Illegal character? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-can-i-delete-a-file-in-dbfs-with-illegal-character/m-p/9760#M5075</link>
    <description>&lt;P&gt;try this &lt;/P&gt;&lt;P&gt;%sh &lt;/P&gt;&lt;P&gt;ls -li /dbfs&lt;/P&gt;&lt;P&gt;if the file is located in a subdirectory you can change the path mentioned above.&lt;/P&gt;&lt;P&gt;the %sh magic command gives you access to linux shell commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2023 12:23:51 GMT</pubDate>
    <dc:creator>-werners-</dc:creator>
    <dc:date>2023-02-17T12:23:51Z</dc:date>
    <item>
      <title>How can I delete a file in DBFS with Illegal character?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-delete-a-file-in-dbfs-with-illegal-character/m-p/9755#M5070</link>
      <description>&lt;P&gt;How can I delete a file in DBFS with Illegal character?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone put the file named "planejamento_[4098.]___SHORT_SAIA_JEANS__.xlsx" inside the folder /FileStore and I can delete it, because of this error: java.net.URISyntaxException: Illegal character in path at index 24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used: dbutils.fs.rm("/FileStore/planejamento_[4098.]___SHORT_SAIA_JEANS__.xlsx")&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 12:07:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-delete-a-file-in-dbfs-with-illegal-character/m-p/9755#M5070</guid>
      <dc:creator>aline_alvarez</dc:creator>
      <dc:date>2023-02-08T12:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete a file in DBFS with Illegal character?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-delete-a-file-in-dbfs-with-illegal-character/m-p/9756#M5071</link>
      <description>&lt;P&gt;you can try to use the %sh magic command and use rm.&lt;/P&gt;&lt;P&gt;Combined with &lt;A href="https://www.linux.com/training-tutorials/linux-shell-tip-remove-files-names-contains-spaces-and-special-characters-such/" alt="https://www.linux.com/training-tutorials/linux-shell-tip-remove-files-names-contains-spaces-and-special-characters-such/" target="_blank"&gt;this little help&lt;/A&gt;, it will probably work.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 12:49:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-delete-a-file-in-dbfs-with-illegal-character/m-p/9756#M5071</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-02-08T12:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete a file in DBFS with Illegal character?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-delete-a-file-in-dbfs-with-illegal-character/m-p/9757#M5072</link>
      <description>&lt;P&gt;Thank you. I tried all the commands but none of them worked because the characters are "[" and "]". &lt;span class="lia-unicode-emoji" title=":weary_face:"&gt;😩&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 12:39:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-delete-a-file-in-dbfs-with-illegal-character/m-p/9757#M5072</guid>
      <dc:creator>aline_alvarez</dc:creator>
      <dc:date>2023-02-16T12:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete a file in DBFS with Illegal character?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-delete-a-file-in-dbfs-with-illegal-character/m-p/9758#M5073</link>
      <description>&lt;P&gt;it should still be possible.&lt;/P&gt;&lt;P&gt;can you try using ls -li (or ls -ia) first to get a list of files, then use the inode number (first column) and use it in the find- delete command:&lt;/P&gt;&lt;P&gt;&amp;gt; ls -li&lt;/P&gt;&lt;P&gt;&amp;gt; find . -inum &amp;lt;inodenumber&amp;gt; -delete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try without the -delete first to see if the file can be found &lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 13:00:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-delete-a-file-in-dbfs-with-illegal-character/m-p/9758#M5073</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-02-16T13:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete a file in DBFS with Illegal character?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-delete-a-file-in-dbfs-with-illegal-character/m-p/9759#M5074</link>
      <description>&lt;P&gt;The file is in DBFS and doesn't show it with ls -li.&lt;/P&gt;&lt;P&gt;﻿&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/701iCD7AF367C89173A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 20:13:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-delete-a-file-in-dbfs-with-illegal-character/m-p/9759#M5074</guid>
      <dc:creator>aline_alvarez</dc:creator>
      <dc:date>2023-02-16T20:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete a file in DBFS with Illegal character?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-delete-a-file-in-dbfs-with-illegal-character/m-p/9760#M5075</link>
      <description>&lt;P&gt;try this &lt;/P&gt;&lt;P&gt;%sh &lt;/P&gt;&lt;P&gt;ls -li /dbfs&lt;/P&gt;&lt;P&gt;if the file is located in a subdirectory you can change the path mentioned above.&lt;/P&gt;&lt;P&gt;the %sh magic command gives you access to linux shell commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 12:23:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-delete-a-file-in-dbfs-with-illegal-character/m-p/9760#M5075</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-02-17T12:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete a file in DBFS with Illegal character?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-delete-a-file-in-dbfs-with-illegal-character/m-p/9761#M5076</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;It worked out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 12:39:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-delete-a-file-in-dbfs-with-illegal-character/m-p/9761#M5076</guid>
      <dc:creator>aline_alvarez</dc:creator>
      <dc:date>2023-02-17T12:39:39Z</dc:date>
    </item>
  </channel>
</rss>

