Skip to contents

Deletes an empty directory.

Usage

delete_file_directory(client, directory_path)

filesDeleteDirectory(client, directory_path)

Arguments

client

Required. Instance of DatabricksClient()

directory_path

Required. The absolute path of a directory.

Details

To delete a non-empty directory, first delete all of its contents. This can be done by listing the directory contents and deleting each file and subdirectory recursively.