Actions51
- Genie Actions
- Databricks SQL Actions
- Unity Catalog Actions
- Model Serving Actions
- Files Actions
- Vector Search Actions
- Jobs Actions
- Clusters Actions
Files → Delete Directory
AI-generatedSummary
Delete a directory within a specified volume in Databricks Unity Catalog by providing the full volume path and the directory path.
Inputs
- Volume Path (required) — Full path to the volume in format: catalog.schema.volume
- Directory Path (required) — Path to the directory within the volume (e.g., "folder1" or "folder1/subfolder") without a leading slash
Output shape
a single JSON object confirming success
Returns a JSON object indicating success and includes the volumePath and directoryPath fields confirming the deleted directory. No pagination or other envelope is used.
Examples
Example 1: Deleting a directory named 'folder1/subfolder' inside the volume 'main.default.my_volume'
Provide 'main.default.my_volume' as Volume Path and 'folder1/subfolder' as Directory Path. The operation sends a DELETE HTTP request to Databricks to delete that directory.