kkawka1
New Contributor III

Hi @Vidula Khanna​ 

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:

dbutils .fs.cp("/databricks-datasets/weathher/high_temps ", "/ FileStore /") 

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:

dbutils .fs.cp("/databricks-datasets/flights/departuredelays.csv ", "/ FileStore /") 

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:

dbutils .fs.ls("/FileStore/")

It does not show me the list of files I created, and running this:

dbutils .fs.head("/FileStore/")

Returns a long string with the contents of one of the files I accidentally saved