TOMC
TOMC

Reputation: 163

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")

Upvotes: 1

Views: 196

Answers (1)

Alex Ott
Alex Ott

Reputation: 87069

what about using dbutils? like,

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

Upvotes: 2

Related Questions