Databricks throws an error when I try to delete a folder that doe not exist:
databricks workspace delete -r /Shared/myfolder
Error message:
Error: b'{"error_code":"RESOURCE_DOES_NOT_EXIST","message":"Path (/Shared/myfolder) doesn\'t exist."}'
So I would probably need to check if the folder exists before deleting it?
Pseudo code example:
if [ -d "/Shared/myfolder" ]; then databricks workspace delete -r /Shared/myfolder ; fi
How can I implement this using Databricks CLI?