<?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 to delete strings from the /FileStore/ in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-delete-strings-from-the-filestore/m-p/9198#M4658</link>
    <description>&lt;P&gt;This will try to remove the /FileStore/ itself, which is not allowed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IllegalArgumentException: /FileStore is a system directory and cannot be deleted.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2023 18:23:22 GMT</pubDate>
    <dc:creator>kkawka1</dc:creator>
    <dc:date>2023-02-16T18:23:22Z</dc:date>
    <item>
      <title>How to delete strings from the /FileStore/</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-delete-strings-from-the-filestore/m-p/9196#M4656</link>
      <description>&lt;P&gt;We have just started working with databricks in one of my university modules, and the lecturers gave us a set of commands to practice saving data in the FileStore. One of the commands was the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbutils .fs.cp("/ databricks - datasets / weathher / high_temps ", "/ FileStore /")&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This basically saved a bunch of strings in the FileStore without creating a new file. I have no idea how to remove them. Is this even possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 16:42:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-delete-strings-from-the-filestore/m-p/9196#M4656</guid>
      <dc:creator>kkawka1</dc:creator>
      <dc:date>2023-02-16T16:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete strings from the /FileStore/</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-delete-strings-from-the-filestore/m-p/9197#M4657</link>
      <description>&lt;P&gt;hey @Konrad Kawka​&amp;nbsp;you can use the command dbutils.fs.rm("your_filestore_path",True) &lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 18:19:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-delete-strings-from-the-filestore/m-p/9197#M4657</guid>
      <dc:creator>Rishabh-Pandey</dc:creator>
      <dc:date>2023-02-16T18:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete strings from the /FileStore/</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-delete-strings-from-the-filestore/m-p/9198#M4658</link>
      <description>&lt;P&gt;This will try to remove the /FileStore/ itself, which is not allowed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IllegalArgumentException: /FileStore is a system directory and cannot be deleted.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 18:23:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-delete-strings-from-the-filestore/m-p/9198#M4658</guid>
      <dc:creator>kkawka1</dc:creator>
      <dc:date>2023-02-16T18:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete strings from the /FileStore/</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-delete-strings-from-the-filestore/m-p/9199#M4659</link>
      <description>&lt;P&gt;Hi @Konrad Kawka​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 05:04:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-delete-strings-from-the-filestore/m-p/9199#M4659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-17T05:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete strings from the /FileStore/</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-delete-strings-from-the-filestore/m-p/9200#M4660</link>
      <description>&lt;P&gt;Hi @Vidula Khanna​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I was not able to resolve the issue. I am beginning to think that it simply can't be done. After running this line of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbutils .fs.cp("/databricks-datasets/weathher/high_temps ",  "/ FileStore /")&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the contents of the high-temps.csv were saved in the FileStore itself as a long string. I don't know how to remove it. I've noticed that I can replace what is stored in the FileStore, for example by running this line of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbutils .fs.cp("/databricks-datasets/flights/departuredelays.csv ", "/ FileStore /")&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of adding more data, it replaces the contents of high_temps with the contents of departuredelays.csv. What I want to do, is to remove what I accidentally saved in the FileStore. I now know how to correctly save it in a new directory within the file store. I just want to remove what was saved in the root FileStore. I even managed to replace it all with an empty string. But what I would like to know is how to get access to the FileStore, see the list of subdirectories I created, and remove any data that I saved in the root FileStore by accident. Another issue is that when I try to run:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbutils .fs.ls("/FileStore/")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not show me the list of files I created, and running this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbutils .fs.head("/FileStore/")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns a long string with the contents of one of the files I accidentally saved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 08:58:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-delete-strings-from-the-filestore/m-p/9200#M4660</guid>
      <dc:creator>kkawka1</dc:creator>
      <dc:date>2023-02-17T08:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete strings from the /FileStore/</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-delete-strings-from-the-filestore/m-p/9201#M4661</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.databricks.com/s/profile/0058Y00000B2rdUQAR" alt="https://community.databricks.com/s/profile/0058Y00000B2rdUQAR" target="_blank"&gt;@Vidula Khanna&lt;/A&gt;&amp;nbsp;(Databricks)​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I was not able to resolve the issue. I am beginning to think that it simply can't be done. After running this line of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbutils .fs.cp("/databricks-datasets/weathher/high_temps ", "/ FileStore /")&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the contents of the high-temps.csv were saved in the FileStore itself as a long string. I don't know how to remove it. I've noticed that I can replace what is stored in the FileStore, for example by running this line of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbutils .fs.cp("/databricks-datasets/flights/departuredelays.csv ", "/ FileStore /")&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of adding more data, it replaces the contents of high_temps with the contents of departuredelays.csv. What I want to do, is to remove what I accidentally saved in the FileStore. I now know how to correctly save it in a new directory within the file store. I just want to remove what was saved in the root FileStore. I even managed to replace it all with an empty string. But what I would like to know is how to get access to the FileStore, see the list of subdirectories I created, and remove any data that I saved in the root FileStore by accident. Another issue is that when I try to run:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbutils .&lt;A href="https://fs.ls/" alt="https://fs.ls/" target="_blank"&gt;fs.ls&lt;/A&gt;("/FileStore/")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not show me the list of files I created, and running this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbutils .fs.head("/FileStore/")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns a long string with the contents of one of the files I accidentally saved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 10:03:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-delete-strings-from-the-filestore/m-p/9201#M4661</guid>
      <dc:creator>kkawka1</dc:creator>
      <dc:date>2023-02-24T10:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete strings from the /FileStore/</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-delete-strings-from-the-filestore/m-p/9202#M4662</link>
      <description>&lt;P&gt;Hi @Konrad Kawka​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I'm sorry you could not find a solution to your problem in the answers provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our community strives to provide helpful and accurate information, but sometimes an immediate solution may only be available for some issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest providing more information about your problem, such as specific error messages, error logs or details about the steps you have taken. This can help our community members better understand the issue and provide more targeted solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you can consider contacting the &lt;A href="https://help.databricks.com/s/login/?ec=302&amp;amp;startURL=%2Fs%2Fsubmitrequest%3F_ga%3D2.21602814.410387879.1677483027-1154058422.1670836178" alt="https://help.databricks.com/s/login/?ec=302&amp;amp;startURL=%2Fs%2Fsubmitrequest%3F_ga%3D2.21602814.410387879.1677483027-1154058422.1670836178" target="_blank"&gt;support team&lt;/A&gt; for your product or service. They may be able to provide additional assistance or escalate the issue to the appropriate section for further investigation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your patience and understanding, and please let us know if there is anything else we can do to assist you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2023 03:25:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-delete-strings-from-the-filestore/m-p/9202#M4662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-11T03:25:40Z</dc:date>
    </item>
  </channel>
</rss>

