An Apache Spark-based analytics platform optimized for Azure.
Hi Santosh Nair,
sorry you’re seeing your Databricks workspace stuck in “Deleting” for over 48 hours—that’s way longer than the usual 5–10 minutes cleanup window. Here’s how you can unstick it:
- Check the workspace deletion status • Run: az databricks workspace show \
• Verify--resource-group <YourResourceGroup> \ --name <YourWorkspaceName>provisioningStateis still “Deleting.” - Terminate any lingering compute or network dependencies • In the portal or via CLI, make sure all clusters are terminated and no jobs are running. • List all resources in the Managed Resource Group (MRG): az resource list --resource-group <YourManagedRG> • If you see VNets, NICs, disks, NSGs, private endpoints, etc., delete or detach them.
- Remove any resource locks or deny assignments • List locks on both your RG and the MRG: az lock list --resource-group <YourResourceGroup> az lock list --resource-group <YourManagedRG> • Delete any “ReadOnly” or “CanNotDelete” locks: az lock delete --id <lock-resource-id>
- Force delete the workspace (if needed) • CLI: az databricks workspace delete \
• Or delete the whole resource group with force-deletion of workspaces: az group delete \--resource-group <YourResourceGroup> \ --name <YourWorkspaceName> \ --force-deletion--name <YourResourceGroup> \ --force-deletion-types Microsoft.Databricks/workspaces \ --yes - Re-check and retry • Rerun the “show” command to confirm the workspace is gone or in a Succeeded/Deleted state. • Once it’s fully deleted, you can recreate or remove the RG without errors.
If it’s still stuck, please share:
- The full output of
az databricks workspace show ... - Any errors you’re seeing in Activity Log or CLI
- Whether there are custom locks or private endpoints attached
- The exact CLI or portal steps you’ve taken
Reference docs:
• Diagnose and resolve issues with workspace deletion
https://learn.microsoft.com/azure/databricks/admin/workspace/delete-workspace
• Resolve DeploymentBeingDeleted errors
• Force-delete workspace catalog / MRG
• Troubleshoot ResourceGroupBeingDeleted
https://learn.microsoft.com/azure/databricks/error-messages/error-classes#resourcegroupbeingdeleted
Hope this helps you get past the stalled delete—let me know how it goes!
Note: This content was drafted with the help of an AI system. Please verify the information before relying on it for decision-making.