02-23-2023 01:21 AM
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:
dbutils .fs.cp("/ databricks - datasets / weathher / high_temps ", "/ FileStore /")
This saved many strings in the FileStore without creating a new file. I have no idea how to remove them. Is this even possible?
PS. Please, don't tell me about the dbutils.fs.rm. It tries to remove the filestore itself, which is impossible. I've noticed that you can replace the file's contents that were saved in the root FileStore if you repeat the previous command using a different file. But I am trying to remove them, not replace them.
02-23-2023 06:46 AM
indeed, but my screen looks a bit different:
it is that button on the top right you need.
You either work on the Community Edition (which might not contain this functionality) or on an old version.
02-23-2023 01:50 AM
you can delete files using the data explorer in Databricks web UI.
another option is to use %fs or %sh in a notebook.
02-23-2023 03:14 AM
When I click on "Data" in the left-hand side panel, it just says that I don't have access to any running clusters. I also tried to create a table within a workbook, but it returns:
Can't make a directory for path ...../FileStore since it is a file
02-23-2023 03:18 AM
You have to click the 'Browse DBFS' button in the top right of the data explorer. No need for a cluster.
Odd location to place that button, agreed 🙂
02-23-2023 06:41 AM
02-23-2023 06:46 AM
02-24-2023 01:18 AM
I see, thanks for trying
02-24-2023 07:17 AM
Hi, @Kaniz Fatma
Yes, we only have access to the community edition
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.
If there isn’t a group near you, start one and help create a community that brings people together.
Request a New Group