Permanently Deleting a Cluster in Databricks

To permanently delete a cluster in Databricks, you need to use the Clusters API. This involves sending a POST request to the API endpoint for permanent deletion. Here’s how you can do it:

First, ensure you have the cluster ID of the cluster you want to delete. If you’re using the dbx launch command, you might need to find another way to obtain the cluster ID, as it’s not directly returned by the command.

Once you have the cluster ID, you can use the following command to permanently delete the cluster:

curl --netrc -X POST 
https://dbc-a1b2345c-d6e7.cloud.databricks.com/api/2.0/clusters/permanent-delete 
--data '{ "cluster_id": "1234-567890-frays123" }'
    

This command will permanently delete the specified cluster, removing its configuration and preventing any further use or restart.

Frequently Asked Questions

Bottom Line: Permanently deleting a cluster in Databricks requires using the Clusters API with the cluster ID. Ensure you have the necessary permissions and understand that deletion is irreversible.


👉 Hop on a short call to discover how Fog Solutions helps navigate your sea of data and lights a clear path to grow your business.