Anonymous
Not applicable

Since you're deleting a folder in the

/mnt
directory, I assume it was made when you mounted a data source. If that's the case, you can delete the folder using

dbutils.fs.unmount("/mnt/temp/")