Databricks icon

Databricks

Interact with Databricks API

Unity Catalog → Delete Volume

AI-generated

Overview

This node operation deletes a specified volume within the Unity Catalog in Databricks. It is useful for managing storage resources by removing volumes that are no longer needed, helping to maintain an organized and efficient data environment. For example, a user can delete a volume named 'my_volume' under a specific catalog and schema to free up space or remove obsolete data storage.

Use Case Examples

  1. Deleting a volume named 'my_volume' in the 'main' catalog and 'default' schema.
  2. Removing an unused volume to clean up storage resources in Unity Catalog.

Properties

Name Meaning
Catalog The catalog in Unity Catalog where the volume exists. This is required to specify the scope of the volume to delete.
Schema The schema within the specified catalog where the volume exists. Required to locate the volume.
Volume Name The name of the volume to delete. This is a required field.

Output

JSON

  • success - Indicates whether the volume deletion was successful.
  • message - A message confirming the deletion of the volume.
  • volumeName - The fully qualified name of the deleted volume in the format catalog.schema.volume.

Dependencies

  • Databricks API
  • An API authentication token (Bearer token) for Databricks

Troubleshooting

  • Ensure the volume path is correctly specified in the format catalog.schema.volume.
  • Verify that the API token has sufficient permissions to delete volumes in Unity Catalog.
  • Check network connectivity and API endpoint accessibility.
  • Handle API errors gracefully; the node throws errors if the volume does not exist or deletion fails.

Links

Discussion