rdatabricksdelta-lakesparklyr

Delete delta table in Databricks with R


I'm trying to delete a delta table using R from Databricks.

It works if I do :

system("rm -rf /my_dir/my_table")

But I don't really like this solution...

Is there a more elegant solution in R ?

Solution

dbutils.fs.rm("/my_dir/my_table")

Solution

  • what about using dbutils? like,

    dbutils.fs.rm("....path...", recurse=TRUE)