Share via

Cannot delete Azure Databricks

Ha Nguyen 0 Reputation points
2026-02-28T05:15:40.5266667+00:00

I am trying to delete a Databricks workspace, but the deletion has been ongoing for about a day.

I tried deleting it several times using both the portal and the REST API, but failed. The provisioning state still says "Deleting," even though it never actually gets deleted.

It is in my personal subscription so there is no support, I can't open a ticket.

Azure Databricks
Azure Databricks

An Apache Spark-based analytics platform optimized for Azure.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Smaran Thoomu 33,920 Reputation points Microsoft External Staff Moderator
    2026-02-28T18:44:53.5033333+00:00

    Hey Ha Nguyen , it sounds like your Databricks workspace is stuck in the “Deleting” state far longer than the usual 5–10 minutes. Here’s what you can try to unblock it:

    1. Make sure nothing’s holding the workspace open
      • In the Databricks workspace, terminate all clusters, jobs, pools, notebooks, etc.
      • Confirm with Azure CLI that no dependent resources are still alive:
        
             az resource list --resource-group <YourResourceGroup>
        
        
    2. Check for system locks or deny assignments on the managed resource group
      • Databricks creates a Managed Resource Group (MRG) with system-level deny assignments – you can’t delete those resources by hand.
      • In the Azure portal: • Go to Resource Groups → <YourMRG> → Locks • Remove any Read-only or Delete locks
    3. Cancel and retry the deletion
      • If the resource group is hanging in “Deleting,” you can cancel that operation:
        
             az group cancel-deletion --name <YourResourceGroup>
        
        
      • Then delete the workspace again (portal, CLI, or REST API).
    4. If it still won’t budge, force-delete the workspace + its MRG
      • Azure CLI:
        
             az databricks workspace delete \
        
               --resource-group <YourResourceGroup> \
        
               --name <YourWorkspaceName> \
        
               --force-deletion
        
        
      • PowerShell:
        
             Remove-AzDatabricksWorkspace `
        
               -ResourceGroupName <YourResourceGroup> `
        
               -Name <YourWorkspaceName> `
        
               -ForceDeletion
        
        
      Warning: force-deletion permanently removes the workspace catalog and all data in the MRG, so be sure you’ve backed up anything you need.

    Follow-Up Questions

    • When you run a delete via CLI/API, do you see any error messages in the response or in Activity Logs?

    • Can you confirm that all clusters, pools, and jobs in that workspace are terminated?

    • Do you see any resource locks on the workspace or its managed resource group?

    • Have you tried canceling the current delete operation before re-issuing the delete?

    Reference docs

    1. Diagnose and resolve issues with workspace deletion https://learn.microsoft.com/azure/databricks/administration-guide/cloud-configurations/azure/troubleshoot-delete
    2. Remove system locks and deny assignments https://learn.microsoft.com/azure/role-based-access-control/deny-assignments?tabs=azure-portal
    3. Cancel resource group deletion https://learn.microsoft.com/cli/azure/group?view=azure-cli-latest#az_group_cancel-deletion
    4. Force delete via CLI https://learn.microsoft.com/cli/azure/databricks/workspace?view=azure-cli-latest#az-databricks-workspace-delete
    5. Force delete via PowerShell https://learn.microsoft.com/powershell/module/az.databricks/remove-azdatabricksworkspace

    Hope one of these steps helps clear the stuck deletion! Let me know what you see.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.