cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Folder xxxx@xxx.com is protected

scharly3
New Contributor II

Hello, 

On Azure Databricks i'm trying to remove a folder on the Repos folder using the following command : 

databricks workspace delete "/Repos/xxx@xx.com"

I got the following error message:

databricks workspace delete "/Repos/xxxx@xx.com"
Error: Folder xxxx@xxx.com is protected

Looks like this the folder is a special one, any idea how to remove it ? 

10 REPLIES 10

Walter_C
Databricks Employee
Databricks Employee

Repos folders in Databricks are linked to the email addresses of users and are protected, meaning they cannot be deleted using the standard delete command. This is because these folders are special and are associated with the user's workspace.

Once a user is deleted from the workspace the folder should became a normal folder and you should be able to delete it until then.

scharly3
New Contributor II

Hello Walter, 

Thanks for your help,

I'm the user that did create this folder and I do have a user folder under /Users/xxxx@xx.com and i'm fine with it.

This one in /Repos seems of as I only have my user in it. 

Any way to force delete it without deleting myself from the company ? 😉 

Regards,

Walter_C
Databricks Employee
Databricks Employee

The repo/username folder is your home folder and it is a system folder. Therefore, the folder cannot be deleted or renamed

MKTexas13
New Contributor III

We have run into a similar issue. We have a folder in our Repos path in the Workspace that is a user email address. We have tried removing the user from the workspace but we are getting the same error that the folder is protected. How can we resolve this @Walter_C 

Walter_C
Databricks Employee
Databricks Employee

You have deleted the user from the workspace and the folder is still showing?

MKTexas13
New Contributor III

Yes. We sat on a call with the user & deleted them from the workspace. We then tried to delete the folder in Repos that was named the users email address but it said it was protected. 

Walter_C
Databricks Employee
Databricks Employee

What is the method being used? What happen if you go in the UI and select the folder and select the option called move to trash?

Walter_C
Databricks Employee
Databricks Employee

Can you share with me an screenshot of the folder?

winstonharder
New Contributor

Hello Databricks Community,

The error message “Folder xxxx@xxx.com is protected” in Azure Databricks indicates that you’re trying to delete a system-protected folder — typically linked to a user’s workspace, especially under the /Repos directory. These folders are automatically managed by Databricks and cannot be removed directly using the CLI. Instead of spending more time trying to force-delete it, it’s best to leave those folders as-is and manage your code repos from within the Databricks UI. While you're optimizing your setup, why not take a quick break and check out a free streaming app like MagisTV? You can easily download the MagisTV APK from their official website and enjoy a wide range of content — totally free!

Thanks a lot!!

MKTexas13
New Contributor III

To give an update on our issue, we had to wait at least 24 hours from when the user was removed to delete the folder.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now