Databricks icon

Databricks

Interact with Databricks API

Unity Catalog → Delete Function

AI-generated

Overview

This node operation deletes a specified function from the Unity Catalog in Databricks. It is useful for managing and cleaning up functions within the Unity Catalog by removing those that are no longer needed or are obsolete. For example, if a function named 'main.default.my_function' is no longer required, this operation can delete it to maintain an organized catalog.

Use Case Examples

  1. Deleting a function named 'main.default.my_function' from the Unity Catalog to remove outdated or unused functions.
  2. Automating the cleanup of functions in Unity Catalog as part of a data governance workflow.

Properties

Name Meaning
Function The full name of the function to delete, specified in the format 'catalog.schema.function'. This identifies the exact function within the Unity Catalog to be deleted.

Output

JSON

  • success - Indicates whether the function was deleted successfully (true/false).
  • message - A confirmation message stating that the function was deleted successfully.
  • functionName - The full name of the function that was deleted.

Dependencies

  • Databricks API with appropriate authentication token

Troubleshooting

  • Ensure the function name is correctly formatted as 'catalog.schema.function'.
  • Verify that the API token has sufficient permissions to delete functions in Unity Catalog.
  • Common error: 'API Error: 404 Not Found' indicates the specified function does not exist.
  • Network errors may occur if the Databricks host URL is incorrect or unreachable.

Links

Discussion