delete_from_databricks#
- delete_from_databricks(remote_path: str) None [source]#
Delete a file or directory from a Databricks volume.
- Parameters:
- remote_pathstr
Path within the volume to delete. Can point to a single file or a directory.
- Returns:
- None
This function does not return any value but prints progress information to standard output.
Warning
Deletions are irreversible; ensure the correct path is specified.
Examples
>>> delete_from_databricks("data/reports/report.csv") Deleted: data/reports/report.csv
>>> delete_from_databricks("data/old_reports") Deleted directory: data/old_reports